summaryrefslogtreecommitdiff
path: root/tests/api_read_wlan0_ncom_2s1r/sender.py
blob: aa8e22763a90092c09aa228cc1fc3722259e260b (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("wlan0","hello",50,None)
    else:
        api.wait(1) # Second sender start 1s after the first
        api.send("wlan0","hello",50,None)