toPacket method
toPacket converts the BleManufacturerData to a raw message following this structure: MANUFACTURER_ID:DATA
Implementation
String toPacket() {
String message = '${companyId.toRadixString(16).padLeft(4, '0').toUpperCase()}:';
message += data.map((e) => e.toRadixString(16).padLeft(2, '0')).join('').toUpperCase();
return message;
}