Skip to content

Commit 1331613

Browse files
committed
bluetooth/aioble/examples/temp_sensor.py: Properly notifies on update.
Signed-off-by: Stephen More <stephen.more@gmail.com>
1 parent 661efa4 commit 1331613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/bluetooth/aioble/examples/temp_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def _encode_temperature(temp_deg_c):
3939
async def sensor_task():
4040
t = 24.5
4141
while True:
42-
temp_characteristic.write(_encode_temperature(t))
42+
temp_characteristic.write(_encode_temperature(t), send_update=True)
4343
t += random.uniform(-0.5, 0.5)
4444
await asyncio.sleep_ms(1000)
4545

0 commit comments

Comments
 (0)