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

nrf51 - Writing 'text' on characteristic doesn't work using nrfConnect

Hi,

I am developing an application that needs to communicate with nrf51 module over BLE. Specifically I need to write a string on a given characteristic but unable to do so on an example code.

While debugging my code using nrf Connect mobile app I noticed that I'm not able to write 'text' on the characteristic at all (doesn't hit on_write breakpoint). But if I try byte/byte array, it does get hit.

I'm assuming I need to declare the characteristic type to accept string in some way? I'm not sure how to do that though. Here is my code declaring characteristics:

#define CUSTOM_SERVICE_UUID_BASE         {0xBC, 0x8A, 0xBF, 0x45, 0xCA, 0x05, 0x50, 0xBA, \
                                          0x40, 0x42, 0xB0, 0x00, 0xC9, 0xAD, 0x64, 0xF3}

#define CUSTOM_SERVICE_UUID               0x1400
#define CUSTOM_VALUE_CHAR_UUID            0x1401

Can anyone point me to a beginner's tutorial where I can learn this stuff?

Thanks

Parents Reply Children
Related