cancel
Showing results for 
Search instead for 
Did you mean: 

Why I cannot receive any callbacks for BLE write and notification?

DSong.1743
Associate II

Hello community,

I am developing the ble function based on the "BLE_SensorDemo" project and the evaluation board. Right now I can successfully trigger the "aci_gatt_read_permit_req_event" callback by adding service & characteristics as shown in the first picture, and I am using android to send. The function is shown in the second picture.

However when I add the callback "aci_gatt_notification_event" and "aci_gatt_write_permit_req_event" to the sensor.c file and try to send the message from android, they are not triggered at all. I thought maybe I did not initialize ble properly but I cannot find that in documentation. I also attach how I initilize the ble on the third picture.

So I wonder how can this be solved?

0690X00000AsDobQAF.png0690X00000AsDp5QAF.png

0690X00000AsDvrQAF.png

Any help is appreciated,

Song

1 REPLY 1
DSong.1743
Associate II

Well I figured it out...... So "aci_gatt_attribute_modified_event" instead of "aci_gatt_notification_event" or "aci_gatt_write_permit_req_event" will be triggered when a write is executed. The documentation is a little misleading.