send method

  1. @override
void send()
override

Send the message bytes to all connected devices

Implementation

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