kopia lustrzana https://github.com/micropython/micropython-lib
Merge b059f992e2
into 68e0dfce0a
commit
b0aa8618b0
|
@ -93,7 +93,7 @@ async with aioble.scan(duration_ms=5000, interval_us=30000, window_us=30000, act
|
||||||
# Either from scan result
|
# Either from scan result
|
||||||
device = result.device
|
device = result.device
|
||||||
# Or with known address
|
# 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:
|
try:
|
||||||
connection = await device.connect(timeout_ms=2000)
|
connection = await device.connect(timeout_ms=2000)
|
||||||
|
|
Ładowanie…
Reference in New Issue