esds/manual/assets/node.py
2022-09-12 13:22:46 +02:00

6 lines
190 B
Python

def execute(api):
role=api.args # "sender" or "receiver" cf. platform.yaml
if role == "sender":
api.send("wlan0","MY MESSAGE",10,None)
else:
api.receive("wlan0")