Event on notification status change for ble characteristics #6644
Unanswered
espruino-discuss3
asked this question in
General
Replies: 1 comment
-
Posted at 2022-07-05 by @gfwilliams There wasn't a way, but I just added one: So if you use a cutting edge build (or 2v15 when released), you can now do:
I kept it quite broad as this seems like quite a niche thing, and this way it's more flexible. https://www.oreilly.com/library/view/getting-started-with/9781491900550/ch04.html says:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-07-03 by ingaugglor
I have a few characteristics that wait for a device to connect and subscribe to the notifications. If the connected device hasn't subscribed to notifications, there is no reason to update the characteristic. As far as I can tell, the only event we can subscribe to currently for characteristics is onWrite, as well as more general BLE connection and security events. Is there currently any way to accomplish this that I have missed? If not, any idea how much effort it would be to implement?
Beta Was this translation helpful? Give feedback.
All reactions