checking status of writeValue-response

nicolaus
Posts: 1
Joined: Mon Jul 31, 2023 12:00 pm

checking status of writeValue-response

Postby nicolaus » Mon Jul 31, 2023 12:18 pm

Hi,
I have a little project where my code is running on an esp32-c3, and I want to write values to a third party device.

BLERemoteCharacteristic::writeValue(...) has the option to request a response from the server. With the help of a sniffer I can see that a response is being sent. However, I cannot find a way to react to the response, or check the status of the response.

Is there a way to wait for a positive response, or check if a positive response has been received such that I could resend the write request after some time if there hasn't? In some cases I can also see (in the sniffed traffic) that there is no positive response, but an error sent by the slave (= ble-server); is there a way for me to receive that?

cheers, nicolaus

Who is online

Users browsing this forum: No registered users and 56 guests