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

cwallach
Posts: 3
Joined: Thu Sep 20, 2018 9:49 pm

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

Postby cwallach » Wed Jan 16, 2019 6:04 pm

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

Who is online

Users browsing this forum: Majestic-12 [Bot], Sang_Huynh and 123 guests