How to get a value of a GATT characteristic periodically

nossudak
Posts: 2
Joined: Wed Jul 31, 2019 2:29 am

How to get a value of a GATT characteristic periodically

Postby nossudak » Wed Jul 31, 2019 2:47 am

Hello. I'm working on IDF example "ble_gatt_client". In this example GATT client (ESP32) uses notifications to get fresh data from GATT server. However my GATT server device (game pad) does not support notifications. The characteristic properties are "READ and WRITE" only. I managed to read the characteristic once (using esp_ble_gattc_read_char()), but probably I need to read it periodically (maybe every 10 ms). So how to obtain "fresh" characteristic value continuously without using notifications. Hope you can give me some tips or ways where I should search. Thanks in advance.

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

Re: How to get a value of a GATT characteristic periodically

Postby chegewara » Sun Aug 11, 2019 12:33 am

Read characteristic in loop?

Who is online

Users browsing this forum: Baidu [Spider] and 134 guests