mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-07 02:26:28 +02:00
13 lines
274 B
Python
13 lines
274 B
Python
#!/usr/bin/env python
|
|
|
|
def receive(node):
|
|
##### Simple receive
|
|
code, data=node.receive("wlan0")
|
|
msg="Received: "+data if code == 0 else "Receive failed code="+str(code)
|
|
node.log(msg)
|
|
|
|
|
|
def execute(api):
|
|
# Should works for all receivers
|
|
receive(api)
|
|
|