diff --git a/tests/psoc6/multi/network.py b/tests/psoc6/multi/network.py index 0b3f6c77dc036..4697cdd8607c3 100644 --- a/tests/psoc6/multi/network.py +++ b/tests/psoc6/multi/network.py @@ -1,5 +1,8 @@ import binascii, network, time +channel_default = 9 +channel_new = 5 + # Access Point def instance0(): @@ -44,6 +47,8 @@ def instance0(): # ifconfig() # config() + print("ap channel: ", ap_if.config("channel") == channel_default) + ap_if.config(channel=channel_new) # Station @@ -83,6 +88,7 @@ def instance1(): print("sta is (now) connected: ", sta_if.isconnected() == True) # status() + # The test boards are placed next to each other (few cm range) print("sta status rssi in range: ", -70 < sta_if.status("rssi") < 0) print(" > yield access point") @@ -100,3 +106,7 @@ def instance1(): # ifconfig() # config() + print("sta assoc ap channel: ", sta_if.config("channel") == channel_new) + + # # As teardown + # sta_if.disconnect() diff --git a/tests/psoc6/multi/network.py.exp b/tests/psoc6/multi/network.py.exp index f6393bbcd1778..78c016b20e9a7 100644 --- a/tests/psoc6/multi/network.py.exp +++ b/tests/psoc6/multi/network.py.exp @@ -9,6 +9,7 @@ ap has no client: True ap has clients: True ap cannot disconnect: network STA required ap status has stations: True +ap channel: True --- instance1 --- sta instance created sta is not active: True @@ -24,3 +25,4 @@ sta status rssi in range: True sta is disconnected: True sta attempt connection to ap (with bssid) sta is active: True +sta assoc ap channel: True