nimble BLE write notifications
Posted: Fri May 05, 2023 1:46 pm
Hello,
I am currently using Nimble BLE on an ESP32-S3 as a server and connecting to a virtual BLE client device which I have set with specific UUIDS. So far I have been successful in reading and writing to the client but I am having issues with notifications. Currently I subscribe to Read/Notify UUID's and set their CCCD field to 1, and have no issues with receiving a read notification on the ESP32-S3. I do the same for Write/Notify when subscribing and when I write to the client, I do not receive notifications on the ESP32-S3. Changing the value on the client side does not notify either. Is there something I am possibly missing to not receive notifications on the server? Is there a specific requirement to receive write notifications? I am using "ble_gattc_write_flat" as my write function.
I am currently using Nimble BLE on an ESP32-S3 as a server and connecting to a virtual BLE client device which I have set with specific UUIDS. So far I have been successful in reading and writing to the client but I am having issues with notifications. Currently I subscribe to Read/Notify UUID's and set their CCCD field to 1, and have no issues with receiving a read notification on the ESP32-S3. I do the same for Write/Notify when subscribing and when I write to the client, I do not receive notifications on the ESP32-S3. Changing the value on the client side does not notify either. Is there something I am possibly missing to not receive notifications on the server? Is there a specific requirement to receive write notifications? I am using "ble_gattc_write_flat" as my write function.