send method

  1. @override
void send()
override

Send the message bytes to all connected devices

Implementation

@override
void send() {
  data = Uint8List(12);
  // Data Entry MSB
  data[0] = 0xB0 + channel;
  data[1] = 0x65;
  data[2] = parameter >> 7;

  // Data Entry LSB
  data[3] = 0xB0 + channel;
  data[4] = 0x64;
  data[5] = parameter & 0x7F;

  // Data Value MSB
  data[6] = 0xB0 + channel;
  data[7] = 0x06;
  data[8] = value >> 7;

  // Data Value LSB
  data[9] = 0xB0 + channel;
  data[10] = 0x26;
  data[11] = value & 0x7F;

  super.send();
}