esds/tests/api_read_eth0_ncom_2s1r/sender.py

10 lines
268 B
Python
Raw Permalink Normal View History

2022-06-09 21:48:32 +02:00
#!/usr/bin/env python
def execute(api):
2022-06-30 12:11:59 +02:00
api.wait(1248) # All communications start at t=1248s
2022-06-09 21:48:32 +02:00
if api.node_id==0:
api.send("eth0","hello",50,2)
else:
2022-06-30 12:11:59 +02:00
api.wait(1) # Second sender start 1s after the first
2022-06-09 21:48:32 +02:00
api.send("eth0","hello",50,2)