summaryrefslogtreecommitdiff
path: root/tests/api_read_eth0_ncom_2s1r/sender.py
blob: e80db44536ee2a02d36be9e87ab082e8f0d7e795 (plain)
1
2
3
4
5
6
7
8
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)