mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-10 08:20:22 +00:00
14 lines
274 B
Python
14 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)
|
||
|
|