BLE characteristic notification under NimBLE stack
Posted: Thu Jun 18, 2020 2:11 pm
Hello, I am trying to create a BLE peripheral on a ESP32-SOLO-1 using NimBLE Stack. I have successfully created characteristics and I am able to read and write on them, but I can't notify new values to the client.
I have configured the characteristic with read, write and notify flags (.flags = BLE_GATT_CHR_F_READ | BLE_GATT_CHR_F_WRITE | BLE_GATT_CHR_F_NOTIFY) and I try to use ble_gatts_chr_updated(notifiedCharHandle) to notify the client, but the client does not receive the notification. I see that the function returns a 7 as an error identifier, but I can't find the meaning of it.
Thanks in advance,
Jon
I have configured the characteristic with read, write and notify flags (.flags = BLE_GATT_CHR_F_READ | BLE_GATT_CHR_F_WRITE | BLE_GATT_CHR_F_NOTIFY) and I try to use ble_gatts_chr_updated(notifiedCharHandle) to notify the client, but the client does not receive the notification. I see that the function returns a 7 as an error identifier, but I can't find the meaning of it.
Thanks in advance,
Jon