mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-09 22:56:53 +00:00
12 lines
251 B
Python
12 lines
251 B
Python
![]() |
#!/usr/bin/env python
|
||
|
|
||
|
def receive(node):
|
||
|
##### Simple receive
|
||
|
code, data=node.receive("eth0")
|
||
|
msg="Received: "+data if code == 0 else "Receive failed code="+str(code)
|
||
|
node.log(msg)
|
||
|
|
||
|
def execute(api):
|
||
|
receive(api)
|
||
|
receive(api)
|