This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nus app to send uint8_t

Hello,

As far as I can tell, the NUS app sends a signed char of value -127 to 127 in decimal. Is there a way to use the stock UART application to send an unsigned byte of value 0 to 255? In other words, can I send a string such as : {0xDE, 0x02, 0XF5, ...} ?

edit to clarify: I'm trying to send {0xDE, 0x02, 0XF5, ...} from the mobile application to a peripheral device. The mobile application can only send ascii characters, so the range of values that can be sent is very limited. Is there a way to send values from the mobile application that are not ascii (say between 0x00 and 0x30)? Hopefully without having to modify the mobile application.

Thank you very much.

Parents Reply
  • To clarify: I'm trying to send {0xDE, 0x02, 0XF5, ...} from the mobile application to a peripheral device. The mobile application can only send ascii characters, so the range of values that can be sent is very limited. Is there a way to send values from the mobile application that are not ascii (say between 0x00 and 0x30)? Hopefully without having to modify the mobile application. Thank you.

Children
No Data
Related