https://toitlang.org/ logo
It should be as simple as: ``` heart-characteristi...
# general
f
It should be as simple as:
Copy code
heart-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
.