Versions in this module Expand all Collapse all v1 v1.0.0 Sep 29, 2024 Changes in this version + var CR = byte('\r') + var CRLF = []byte("\r\n") + var CTRL_C = []byte("\x03") + var ErrCommandNotSend = errors.New("unable to send command") + var ErrNoFlipperFound = errors.New("no flipper device found, consider using the --port PORT argument") + var ErrNoTerminalFound = errors.New("no terminal found") + var LF = byte('\n') + var TerminalDelimiter = []byte("\n>: ") + func GetFlipperPort() (string, error) + type CLI struct + func Open(port string) (*CLI, error) + func (cli *CLI) Close() error + func (cli *CLI) Read(data []byte) (int, error) + func (cli *CLI) ReadLine() ([]byte, error) + func (cli *CLI) ReadUntil(needle []byte) ([]byte, bool, error) + func (cli *CLI) ReadUntilTerminal() ([]byte, error) + func (cli *CLI) SendCommand(command string) error + func (cli *CLI) SendCtrlC() error + func (cli *CLI) SetReadTimeout(timeout int) + func (cli *CLI) SetWriteTimeout(timeout int) + func (cli *CLI) Write(data []byte) (int, error) v1.0.0-rc.1 Sep 25, 2024