Skip to main content
DSong.1743
Associate
November 19, 2019
Question

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

  • November 19, 2019
  • 1 reply
  • 1071 views

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

    This topic has been closed for replies.

    1 reply

    DSong.1743
    Associate
    November 19, 2019

    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.