Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/micropython/bluetooth/aioble/examples/temp_client.py: Fix units in ADV_INTERVAL constant. #927

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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