pack method

  1. @override
Uint8List pack()
override

pack() should produce a message data payload that can be parsed by a corresponding parser in the frameside application (Lua) The 0x01 (raw user data marker) byte and the msgCode byte are prepended to each bluetooth write() call by the Frame BLE sendDataRaw() method, followed by the maximum amount of payload data that will fit until the whole message is sent.

Implementation

@override
Uint8List pack() {
  return Uint8List.fromList([value & 0xFF]);
}