summaryrefslogtreecommitdiff
path: root/tests/simple_read_wlan0_ncom_2s1r/receiver.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple_read_wlan0_ncom_2s1r/receiver.py')
-rw-r--r--tests/simple_read_wlan0_ncom_2s1r/receiver.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/simple_read_wlan0_ncom_2s1r/receiver.py b/tests/simple_read_wlan0_ncom_2s1r/receiver.py
new file mode 100644
index 0000000..9f652aa
--- /dev/null
+++ b/tests/simple_read_wlan0_ncom_2s1r/receiver.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+
+def execute(api):
+ api.log("wlan0 is {}".format(api.read("wlan0_ncom")))
+ api.wait(624)
+ api.log("wlan0 is {}".format(api.read("wlan0_ncom")))
+ 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("wlan0_ncom"))) # Should print 1
+ api.wait(1) # Second sender start a communication
+ api.log("wlan0 is {}".format(api.read("wlan0_ncom"))) # Should print 2