Skip to content

Commit b882ae2

Browse files
committed
aioble\examples\temp_sensor: Change name to _ADV_INTERVAL_US.
closes: #1055 Signed-off-by: Jos Verlinde <Jos_Verlinde@hotmail.com>
1 parent 200e8d1 commit b882ae2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

micropython/bluetooth/aioble/examples/temp_sensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
_ADV_APPEARANCE_GENERIC_THERMOMETER = const(768)
2121

2222
# How frequently to send advertising beacons.
23-
_ADV_INTERVAL_MS = 250_000
23+
_ADV_INTERVAL_US = 250_000
2424

2525

2626
# Register GATT server.
@@ -50,7 +50,7 @@ async def sensor_task():
5050
async def peripheral_task():
5151
while True:
5252
async with await aioble.advertise(
53-
_ADV_INTERVAL_MS,
53+
_ADV_INTERVAL_US,
5454
name="mpy-temp",
5555
services=[_ENV_SENSE_UUID],
5656
appearance=_ADV_APPEARANCE_GENERIC_THERMOMETER,

0 commit comments

Comments
 (0)