toPacket method

String toPacket()

toPacket converts the BleData to a raw message following this structure: MAC_ADDRESS:MODEL

Implementation

String toPacket() {
  return '${macAddress.replaceAll(':', '').toUpperCase()}:$model';
}