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

How to write sensor values into Tx characteristic of NUS service?

Hello All,

I want to write the peripheral code which will send sensor reading to central.

For that I started looking into the Uart_Nus peripheral code from SDK. I tried to write some hard coded values using ble_nus_send_string() function but it didn't work.

Can you please guide me how I can write the sensor readings into TX characteristics and notify it to server?

Related