TxMsg class abstract

The base class for all Tx (transmit phone to Frame) messages that can be sent using sendMessage() which performs splitting across multiple MTU-sized packets an assembled automatically frameside by the data handler.

Implementers

Constructors

TxMsg({required int msgCode})

Properties

hashCode int
The hash code for this object.
no setterinherited
msgCode int
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pack() Uint8List
pack() should produce a message data payload that can be parsed by a corresponding parser in the frameside application (Lua) TxMsg needs to know its own message code, but it is not included in the payload bytes returned by pack; the 0x01 data byte and the msgCode byte are prepended to each bluetooth write() call by the sendDataRaw method, followed by the maximum amount of payload data that will fit until the whole message is sent.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited