Reliable gatt connection
I've been testing my app for the last few weeks and everything works as expected. However sometimes when the signal is not strong enough the reconnect process could result in a false positive making the connected device stale and not responding to any signal and forcing me to restart the service.
I'll try to explain:
During the reconnect process, if the signal is strong enough, the
connectedcallback is triggered and everything proceed as expected (the app reconnect) otherwise, with intermittent signal, the
connectedcallback is still triggered even if connection process has not completed correctly due to weak signal resulting in a corrupted state (every request sent to the board afterward is ignored).
I was wondering if there's any way to start the connection process or trigger the
connectedcallback only if the signal is strong enough to be completed.
Hope that what I explained make sense.
Thanks for your help.
This discussion has been closed.