This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540: How subscribe for notify characteristic in ti ble stack

Part Number: CC2540

hi to all,

i am developing a ble device based on ti cc540 ble soc, i want implement a central device that read a notify charactiristic(with callback function) from a peripheral device, but i do not know how subscribe for that notify charactiristic, can any one give me a advice to how done that ??

  • Hi Alireza,

    In order to subscribe to notifications from a characteristic, you must write 1 to the associated CCfg.

    E.g., using simple BLE peripheral, connect with a central. Discover the services and characteristics, and write 1 to the CCfg of characteristic 4.