jpnurmi / flutter_libserialport

Serial Port for Flutter
https://pub.dev/packages/flutter_libserialport
MIT License
139 stars 80 forks source link

How can i decode data from RS232 port #63

Closed fujimihikari closed 1 year ago

fujimihikari commented 1 year ago

i get this value from RS232 port value

flutter: Read Data : [95, 24, 254] flutter: Read Data : [95, 0, 254] flutter: Read Data : [15, 32, 254] flutter: Read Data : [15, 32, 254] flutter: Read Data : [15, 0, 254]

how can i decode this value to readable String ?

MihirGrand commented 9 months ago

reader.stream.map((data) => print(String.fromCharCodes(data)));