Hi,
My BLE server doesn't support Indication/Notification. How can I get its value of every change.
Please take a look at attached picture.
Thank you for your support.
BLE Notification/Indication
BLE Notification/Indication
- Attachments
-
- Screenshot 2022-05-14 202807.png (102.72 KiB) Viewed 4737 times
-
- Posts: 101
- Joined: Tue Mar 22, 2022 5:23 am
Re: BLE Notification/Indication
Hello, actually it's difficult to answer with so less details. Would you please shed more lights on what you want to do? It may bring you more suggestions. Thank you.
Re: BLE Notification/Indication
Hi, I want to get data from BLE gamepad. ESP is as client. But characterictics value of gamepad supports read/write without notify. I can not resgiter_for_notify because ESP_GATT_CHAR_PROP_BIT_NOTIFY is set zero. So what is the best way to update its changes.
Re: BLE Notification/Indication
If this is the case, where the Server/Peripheral device does not offer notify/indicate feature, then the only way is to do read.
Re: BLE Notification/Indication
That means I should use while loop to read it. Is it possible to use GAP interval to update value?
Re: BLE Notification/Indication
I guess that is the most logical way around the problem. You have to ask the developer of the device why they are not providing notification feature. Read loop is only useful for things that you know that comes on a fix periodic intervals.
Re: BLE Notification/Indication
Thank you for your support. Kind Regards.
Re: BLE Notification/Indication
Well, in theory it is possible to receive notifications even if server is missing descriptor 2902, but that depends on the server implementation.
On esp32 side, client side, all you have to do is to subscribe for notification without write to that descriptor.
On esp32 side, client side, all you have to do is to subscribe for notification without write to that descriptor.
Who is online
Users browsing this forum: Google [Bot] and 73 guests