I am using ble_uart_app on SDK_11 nRF51-dk s130.
I would like to send binary hex data instead of ASCII. Looking at ble_nus_string_send(), it seems that sending binary hex should be ok. Do I still have to modify anything else?
I am using ble_uart_app on SDK_11 nRF51-dk s130.
I would like to send binary hex data instead of ASCII. Looking at ble_nus_string_send(), it seems that sending binary hex should be ok. Do I still have to modify anything else?
Hi,
The conversion to ASCII does not happen inside the ble_nus_string_send(ble_nus_t * p_nus, uint8_t * p_string, uint16_t length) function. It simply treats the p_string variable as a byte array, and does not care what it contains (value wise). So you can send any data into the function.
Best regards,
Øyvind
Hi,
The conversion to ASCII does not happen inside the ble_nus_string_send(ble_nus_t * p_nus, uint8_t * p_string, uint16_t length) function. It simply treats the p_string variable as a byte array, and does not care what it contains (value wise). So you can send any data into the function.
Best regards,
Øyvind