Constructors
constructor
- new default(type, subsystem, commandID, data, length?, fcs?): default
Parameters
- type: Type
- subsystem: Subsystem
- commandID: number
- data: Buffer
Optional
length: numberOptional
fcs: number
Properties
Readonly
commandID
commandID: number
Optional
Readonly
fcs
fcs?: number
Optional
Readonly
length
length?: number
Methods
toBuffer
- toBuffer(): Buffer
Returns Buffer
toString
- toString(): string
Returns string
Static
fromBuffer
- fromBuffer(length, fcsPosition, buffer): default
Parameters
- length: number
- fcsPosition: number
- buffer: Buffer