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

About nrf52832 ble_central transmitter as hexadecimal values to client

I'm try to sending command to our device for using ble_nus_c_string_send function, but there has a problem when I addition 0x00 value in data the client can't receive any things.

If I delete 0x00 value then the client can receive. I need client receiving hex values such as 00806D656E752E68722C690D

uint8_t test[12]={0x00, 0x80, 0x6D, 0x65, 0x6E, 0x75, 0x2E, 0x68, 0x72, 0x2C, 0x69, 0x0D};
uint16_t length = strlen(test);
ble_nus_c_string_send(&m_ble_nus_c, test, length);

Parents Reply Children
Related