Hello,
i'm trying to send string composed of three floats of an accelerometer measurement over BLE using UART nordic service (NUS),.
can anyone help me.
Hello,
i'm trying to send string composed of three floats of an accelerometer measurement over BLE using UART nordic service (NUS),.
can anyone help me.
Just wanted to add a code snippet in case anyone came here looking for syntax
char buffer[100]; float f_val; sprintf(buffer, "%.4f",f_val);
HI
I used as like collin said
by using sprintf i convert the float to string
but by sending data to mobile by using ble_nus_data_send();
it doesn't show in the mobile...
Sunil vignesh, so you are not receiving any data now? Do you receive data if you don't encode the data with sprintf?