tests/multi_bluetooth: Skip tests when BLE features are unsupported.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
2a38d71036
commit
e98ff3f08e
@ -4,6 +4,10 @@
|
||||
from micropython import const
|
||||
import time, machine, bluetooth
|
||||
|
||||
if not hasattr(bluetooth.BLE, "gap_pair"):
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
TIMEOUT_MS = 4000
|
||||
|
||||
_IRQ_CENTRAL_CONNECT = const(1)
|
||||
|
@ -5,6 +5,10 @@
|
||||
from micropython import const
|
||||
import time, machine, bluetooth
|
||||
|
||||
if not hasattr(bluetooth.BLE, "gap_pair"):
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
TIMEOUT_MS = 4000
|
||||
|
||||
_IRQ_CENTRAL_CONNECT = const(1)
|
||||
|
@ -7,6 +7,10 @@
|
||||
from micropython import const
|
||||
import time, machine, bluetooth, random
|
||||
|
||||
if not hasattr(bluetooth.BLE, "l2cap_connect"):
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
TIMEOUT_MS = 1000
|
||||
|
||||
_IRQ_CENTRAL_CONNECT = const(1)
|
||||
|
@ -3,6 +3,10 @@
|
||||
from micropython import const
|
||||
import time, machine, bluetooth, random
|
||||
|
||||
if not hasattr(bluetooth.BLE, "l2cap_connect"):
|
||||
print("SKIP")
|
||||
raise SystemExit
|
||||
|
||||
TIMEOUT_MS = 1000
|
||||
|
||||
_IRQ_CENTRAL_CONNECT = const(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user