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

How to handle characteristic data?

Hello,

For me, at the moment there are two things unclear. With the help of some Nordic examples, I was able to add a Service with 3 characteristics to the used S120 BLE stack. I`m able to connect to the PCA10028 demoboard via a Smartphone. I can see the service/characteristics with the nordic master control panel (Android).

The first two characteristics are defined readable only. The 3rd characteristic is defined readable/writable.

So the first question is, how I can add data to the first two characteristics? For example, I want to write 0xFFAAFFAA to the first chracteristic. My expectation is, if I read out the first characteristic with the Smartphone, I get 0xFFAAFFAA. Where do I have to place this data to the characteristic?

The second question is, how do I get data written from the Smartphone? I tried to see the written data (for example 0xFF) with the debugger (watch window). But I wasn`t able to get the written data. In which function do I have to handle the received data? In which variable the received data is stored?

Thanks in advance for any help!

Regards!

Parents Reply Children
No Data
Related