blob: d41304e65ec56f1eb3349150918127ac7615b761 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env python
def execute(api):
api.log("wlan0 is {}".format(api.read("ncom_wlan0")))
api.wait(624)
api.log("wlan0 is {}".format(api.read("ncom_wlan0")))
api.wait(624)
# Now we are at 624*2=1248 (first sender start a communication)
api.wait(1) # Let the communication starts
api.log("wlan0 is {}".format(api.read("ncom_wlan0"))) # Should print 1
api.wait(1) # Second sender start a communication
api.log("wlan0 is {}".format(api.read("ncom_wlan0"))) # Should print 2
|