Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion micropython/bluetooth/aioble/examples/temp_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
_ADV_APPEARANCE_GENERIC_THERMOMETER = const(768)

# How frequently to send advertising beacons.
_ADV_INTERVAL_MS = 250_000
_ADV_INTERVAL_US = 250_000


# Register GATT server.
Expand Down Expand Up @@ -50,7 +50,7 @@
async def peripheral_task():
while True:
async with await aioble.advertise(
_ADV_INTERVAL_MS,

Check failure on line 53 in micropython/bluetooth/aioble/examples/temp_sensor.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F821)

micropython/bluetooth/aioble/examples/temp_sensor.py:53:13: F821 Undefined name `_ADV_INTERVAL_MS`
name="mpy-temp",
services=[_ENV_SENSE_UUID],
appearance=_ADV_APPEARANCE_GENERIC_THERMOMETER,
Expand Down
Loading