You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I connected to an ESP32-C3 BLE server and there is a read, write, and notify characteristic. I enabled notifications on the first device and then changed the value with the second device. The first device did not get a notification. When I read the value with the first device manually, I saw the updated value. When I added notify() to the code on write, notifications worked as expected.
Is this expected behavior?
If yes, why are notifications not automatic? Seems inconsistent / confusing.
The text was updated successfully, but these errors were encountered:
The current behavior is expected.
Notify is not automatically invoked so that users can use it when they want to.
However, I did not realize that it is a hard to call notify when writing from the outside.
So, I added notify funciton to OnWriteArgs so that you can easily notify as follows.
I connected to an ESP32-C3 BLE server and there is a read, write, and notify characteristic. I enabled notifications on the first device and then changed the value with the second device. The first device did not get a notification. When I read the value with the first device manually, I saw the updated value. When I added
notify()
to the code on write, notifications worked as expected.The text was updated successfully, but these errors were encountered: