Hello!
How to convert received data from BLE device to display them as ASCII chars, not as a numbers (DEC or HEX).
I will be gratefull very much for help.
BR,
Jakub
Hello!
How to convert received data from BLE device to display them as ASCII chars, not as a numbers (DEC or HEX).
I will be gratefull very much for help.
BR,
Jakub
Normally, people register for strings and receive a list of strings at a time.
If you can only receive a list of Bytes, here is some conversion code, courtesy of Italo:
AsciiCHRASCprocedures.aia (4.0 KB)
Hi can Jakub_Papuga-Szalaps,
did you ever decode your bytes to ASCII text ?
I just get,
invalid text operation Segment: Start is less than 1(0)
when I try to copy from byte list to other list
Your byte list is empty.
Here is a more bulletproof asc() procedure, though it will not get to the root of your problem, only cover it up ...
Thanks ABG , I just added this but as you say It only masked another problem.
https://community.appinventor.mit.edu/t/checking-4-bytes-to-mark-beginning-and-end-of-a-data-packet-on-incoming-bluetooth-data/3182/31