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(9);
  // Data Entry MSB
  data[0] = 0xB0 + channel;
  data[1] = 0x63;
  data[2] = parameterMSB;

  // Data Entry LSB
  data[3] = 0x62;
  data[4] = parameterLSB;

  // Data Value MSB
  data[5] = 0x06;
  data[6] = valueMSB;

  // Data Value LSB
  data[7] = 0x26;
  data[8] = valueLSB;

  super.send(deviceId: deviceId, timestamp: timestamp);
}