Skip to content

Commit 57ce3ba

Browse files
bhavesh-kdpgeorge
authored andcommitted
aioble: Fix advertising variable name to use us not ms.
1 parent 9ceda53 commit 57ce3ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

micropython/bluetooth/aioble/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ _ENV_SENSE_UUID = bluetooth.UUID(0x181A)
108108
_ENV_SENSE_TEMP_UUID = bluetooth.UUID(0x2A6E)
109109
_GENERIC_THERMOMETER = const(768)
110110

111-
_ADV_INTERVAL_MS = const(250000)
111+
_ADV_INTERVAL_US = const(250000)
112112

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

118118
while True:
119119
connection = await aioble.advertise(
120-
_ADV_INTERVAL_MS,
120+
_ADV_INTERVAL_US,
121121
name="temp-sense",
122122
services=[_ENV_SENSE_UUID],
123123
appearance=_GENERIC_THERMOMETER,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy