Skip to content

Commit

Permalink
aioble: Fix advertising variable name to use us not ms.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavesh-k authored and dpgeorge committed Dec 20, 2023
1 parent 9ceda53 commit 57ce3ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions micropython/bluetooth/aioble/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ _ENV_SENSE_UUID = bluetooth.UUID(0x181A)
_ENV_SENSE_TEMP_UUID = bluetooth.UUID(0x2A6E)
_GENERIC_THERMOMETER = const(768)

_ADV_INTERVAL_MS = const(250000)
_ADV_INTERVAL_US = const(250000)

temp_service = aioble.Service(_ENV_SENSE_UUID)
temp_char = aioble.Characteristic(temp_service, _ENV_SENSE_TEMP_UUID, read=True, notify=True)
Expand All @@ -117,7 +117,7 @@ aioble.register_services(temp_service)

while True:
connection = await aioble.advertise(
_ADV_INTERVAL_MS,
_ADV_INTERVAL_US,
name="temp-sense",
services=[_ENV_SENSE_UUID],
appearance=_GENERIC_THERMOMETER,
Expand Down

0 comments on commit 57ce3ba

Please sign in to comment.