buildRequest method
Build the request bytes to send to the device.
Implementation
@override
Uint8List buildRequest() {
// Format: [CommandId, StartIndexLow, StartIndexHigh]
final buffer = ByteData(3);
buffer.setUint8(0, commandId);
buffer.setUint16(1, startIndex, Endian.little);
return buffer.buffer.asUint8List();
}