2022-06-09 21:48:32 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
def execute(api):
|
2022-06-11 10:32:23 +02:00
|
|
|
api.log("wlan0 is {}".format(api.read("ncom_wlan0")))
|
2022-06-09 21:48:32 +02:00
|
|
|
api.wait(624)
|
2022-06-11 10:32:23 +02:00
|
|
|
api.log("wlan0 is {}".format(api.read("ncom_wlan0")))
|
2022-06-09 21:48:32 +02:00
|
|
|
api.wait(624)
|
|
|
|
# Now we are at 624*2=1248 (first sender start a communication)
|
|
|
|
api.wait(1) # Let the communication starts
|
2022-06-11 10:32:23 +02:00
|
|
|
api.log("wlan0 is {}".format(api.read("ncom_wlan0"))) # Should print 1
|
2022-06-09 21:48:32 +02:00
|
|
|
api.wait(1) # Second sender start a communication
|
2022-06-11 10:32:23 +02:00
|
|
|
api.log("wlan0 is {}".format(api.read("ncom_wlan0"))) # Should print 2
|