floitsch
11/10/2025, 9:29 AMheart-characteristic.subscribe
while true:
new-value := heart-characteristic.wait-for-notification
I don't remember what happens if you don't call wait-for-notification enough. Whether the values are queued (using up memory), or discarded.
If you only need one value, you should just subscribe, then wait-for-notification, and then unsubscribe.