Constructors
constructor
- new NiimbotPacket(command, data, validResponseIds?): NiimbotPacket
Properties
Static
Readonly
HEAD
HEAD: Uint8Array = ...
Static
Readonly
TAIL
TAIL: Uint8Array = ...
Accessors
checksum
- get checksum(): number
Returns number
data
- get data(): Uint8Array
Returns Uint8Array
dataLength
- get dataLength(): number
Returns number
length
- get length(): number
Returns number
oneWay
- get oneWay(): boolean
Returns boolean
- set oneWay(value): void
Returns void
Methods
toBytes
- toBytes(): Uint8Array
Returns Uint8Array
Static
fromBytesMultiPacket
NIIMBOT packet object