micropython / micropython-lib

Core Python libraries ported to MicroPython
Other
2.3k stars 980 forks source link

bluetooth/aioble/examples/temp_sensor.py: Properly notifies on update. #835

Closed mores closed 1 month ago

konistehrad commented 2 months ago

I think this should be merged. The timeout_ms=None call in particular keeps something deep in the internals from blocking service queries from the central, and without this the central doesn't get timely updates.

aetelani commented 1 month ago

Thanks for example update. I was doing this myself because the current example in master was not working.

dpgeorge commented 1 month ago

Thanks for the contribution. I can confirm that both fixes are needed: