2019-11-19 12:46 PM
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?
Any help is appreciated,
Song
2019-11-19 02:23 PM
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.