kopia lustrzana https://github.com/micropython/micropython-lib
Fix aioble README const name: ADDR_PUBLIC
Signed-off-by: Garry W <32130780+garywill@users.noreply.github.com>pull/939/head
rodzic
e4cf09527b
commit
b059f992e2
|
@ -93,7 +93,7 @@ async with aioble.scan(duration_ms=5000, interval_us=30000, window_us=30000, act
|
|||
# Either from scan result
|
||||
device = result.device
|
||||
# Or with known address
|
||||
device = aioble.Device(aioble.PUBLIC, "aa:bb:cc:dd:ee:ff")
|
||||
device = aioble.Device(aioble.ADDR_PUBLIC, "aa:bb:cc:dd:ee:ff")
|
||||
|
||||
try:
|
||||
connection = await device.connect(timeout_ms=2000)
|
||||
|
|
Ładowanie…
Reference in New Issue