Documentation ¶
Index ¶
Constants ¶
View Source
const ( PAYLOAD_MAX_LENGTH = 247 FRAGMENT_MAX_LENGTH = 244 PROTOBUF_MAX_LENGTH = 242 EDM_START = 0xAA EDM_STOP = 0x55 DATA_EVENT = 0x31 DATA_COMMAND = 0x36 )
Variables ¶
View Source
var BLENamePattern = regexp.MustCompile(`\+UBTLN:"([^"]+)"`)
View Source
var BLEStartupPattern = regexp.MustCompile(`(\+STARTUP)`)
Functions ¶
This section is empty.
Types ¶
type BLE ¶
type BLE struct { Drive *ums.Drive Keyring *crypto.Keyring // contains filtered or unexported fields }
func (*BLE) PairingMode ¶
type Data ¶
func (*Data) SetDefaults ¶
func (cmd *Data) SetDefaults()
type Packet ¶
func (*Packet) SetDefaults ¶
func (pkt *Packet) SetDefaults()
func (*Packet) SetPayload ¶
Click to show internal directories.
Click to hide internal directories.