const STATUS
pub const STATUS = 1Purpose
Bounded command envelope. Identifiers and operation names are ASCII commands never contain credentials or arbitrary GATT/MMIO writes.
#embedded/bluetooth/controlStandard library package `#embedded/bluetooth/control`.
const STATUSpub const STATUS = 1Bounded command envelope. Identifiers and operation names are ASCII commands never contain credentials or arbitrary GATT/MMIO writes.
const ADVERTISING_STARTpub const ADVERTISING_START = 2Constant ADVERTISING_START, defining protocol or algorithm parameters.
const ADVERTISING_STOPpub const ADVERTISING_STOP = 3Constant ADVERTISING_STOP, defining protocol or algorithm parameters.
const DISCONNECTpub const DISCONNECT = 4Constant DISCONNECT, defining protocol or algorithm parameters.
const RELEASE_ALLpub const RELEASE_ALL = 5Constant RELEASE_ALL, defining protocol or algorithm parameters.
const KEYBOARDpub const KEYBOARD = 6Constant KEYBOARD, defining protocol or algorithm parameters.
const MOUSEpub const MOUSE = 7Constant MOUSE, defining protocol or algorithm parameters.
const CONSUMERpub const CONSUMER = 8Constant CONSUMER, defining protocol or algorithm parameters.
struct Commandpub struct Command {
pub valid bool
pub id string
pub op int
pub report []int
}Structure encapsulating valid, id, op, report.
valid boolid stringop intreport []intparsepub fn parse(bytes &string) CommandParse the input.
bytes &stringCommand — a value of this type