send method

  1. @override
void send({
  1. String? deviceId,
  2. int? timestamp,
})
override

Send the message bytes to all connected devices

Implementation

@override
void send({String? deviceId, int? timestamp}) {
  data = Uint8List.fromList(headerData);
  data.insert(0, 0xF0); // Start byte
  data.addAll(_bytesForValue(value));
  data.add(0xF7); // End byte
  super.send(deviceId: deviceId, timestamp: timestamp);
}