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

Characteristic ASII format

I need to set HEX value (uint8_t value[7]            = {0x56,0x45,0x52,0x53,0x49,0x4F,0x4E};)  on my custom character to be read by my phone. but the value that is  displayed on my character is not HEX format. even when my phone try to read it as byte it is not the value what i set up on my character

.

What is displayed on my custom character is 00 00 00 00 D7 7E 02:

so how can i make sure my custom character is displayed the exact bytes.

  • Hi,

    you put your value[] in automatic variable that is allocated on the stack and destroyed once rx_char_2_add() returns. Just declare it as static.