summaryrefslogtreecommitdiff
path: root/tests/api_read_eth0_ncom_2s1r/sender.py
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-06-30 12:11:59 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-06-30 12:11:59 +0200
commitd0ae9f329685a19136cfd9a890b305db3bc384b9 (patch)
treeb3c72908b8930db16b1f682bb7119abeaf72fadf /tests/api_read_eth0_ncom_2s1r/sender.py
parent1bef51d87860f782f687533012167bebb43c093d (diff)
Improve tests
Diffstat (limited to 'tests/api_read_eth0_ncom_2s1r/sender.py')
-rw-r--r--tests/api_read_eth0_ncom_2s1r/sender.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/api_read_eth0_ncom_2s1r/sender.py b/tests/api_read_eth0_ncom_2s1r/sender.py
new file mode 100644
index 0000000..e80db44
--- /dev/null
+++ b/tests/api_read_eth0_ncom_2s1r/sender.py
@@ -0,0 +1,9 @@
+#!/usr/bin/env python
+
+def execute(api):
+ api.wait(1248) # All communications start at t=1248s
+ if api.node_id==0:
+ api.send("eth0","hello",50,2)
+ else:
+ api.wait(1) # Second sender start 1s after the first
+ api.send("eth0","hello",50,2)