tests/multi_bluetooth: Skip tests when BLE features are unsupported.

Signed-off-by: Damien George <damien@micropython.org>
pull/7027/head
Damien George 2021-03-12 19:50:13 +11:00
rodzic 2a38d71036
commit e98ff3f08e
4 zmienionych plików z 16 dodań i 0 usunięć

Wyświetl plik

@ -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)

Wyświetl plik

@ -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)

Wyświetl plik

@ -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)

Wyświetl plik

@ -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)