Page 1 of 1

How does BLE GATT Client read characteristic (battery level) value?

Posted: Wed Jan 16, 2019 6:04 pm
by cwallach
I would like to read the battery level from a BLE server. How does one do this?

I modified the GATT_CLIENT example project to use the Battery Service UUID. When run it appears to WRITE the battery level (which fails). How to READ the battery level?

The file Gatt_Client_Example_Walkthrough.md has a function, esp_ble_gattc_get_characteristic(), which appears relevant. Except this function is not defined in the current (3.1) SDK.

Thanks