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.

CC2541: Notification (CallBack) from BLE characteristic to OSAL

Part Number: CC2541
Other Parts Discussed in Thread: , BLE-STACK

Hello

I'm using CC2541DK-MINI CC2541 Mini Development Kit with standart program KeyFob Demo.
If BLE characteristic was changed Is there a way to create notification (callback) for OSAL? I don't wnat to use task for check characteristic because it will work not fast. If execute task with small period, I afraid it will load process.

I want to sent journal and use two characterisitics. One characteristic for data (one line of journal) second for command (for example "send next line of journal").

What is there best way to check characteristic change?

With the bst regards.

  • Hello Arthur,

    The respective Read/Write Attribute Callbacks will be invoked by the stack upon a change to the characteristic. Please see Sec 4.5 Callbacks in the SW Developer's Guide included in the BLE-Stack SDK.

    Best wishes