bluetooth/aioble/examples/temp_sensor.py: properly notifies on update.

pull/833/head
Stephen More 2024-03-25 08:38:57 -04:00
rodzic 661efa48f0
commit 8356b18c58
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -39,7 +39,7 @@ def _encode_temperature(temp_deg_c):
async def sensor_task():
t = 24.5
while True:
temp_characteristic.write(_encode_temperature(t))
temp_characteristic.write(_encode_temperature(t), send_update=True)
t += random.uniform(-0.5, 0.5)
await asyncio.sleep_ms(1000)