We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 200e8d1 commit b882ae2Copy full SHA for b882ae2
micropython/bluetooth/aioble/examples/temp_sensor.py
@@ -20,7 +20,7 @@
20
_ADV_APPEARANCE_GENERIC_THERMOMETER = const(768)
21
22
# How frequently to send advertising beacons.
23
-_ADV_INTERVAL_MS = 250_000
+_ADV_INTERVAL_US = 250_000
24
25
26
# Register GATT server.
@@ -50,7 +50,7 @@ async def sensor_task():
50
async def peripheral_task():
51
while True:
52
async with await aioble.advertise(
53
- _ADV_INTERVAL_MS,
+ _ADV_INTERVAL_US,
54
name="mpy-temp",
55
services=[_ENV_SENSE_UUID],
56
appearance=_ADV_APPEARANCE_GENERIC_THERMOMETER,
0 commit comments