mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-06 10:06:28 +02:00
14 lines
430 B
Python
14 lines
430 B
Python
#!/usr/bin/env python
|
|
from esds import RCode
|
|
|
|
def execute(api):
|
|
##### Simple receive from node 0
|
|
code, data=api.receive("eth0")
|
|
msg="Received: "+data if code == RCode.SUCCESS else "Receive failed code="+str(code)
|
|
api.log(msg)
|
|
|
|
##### Simple receive from node 1
|
|
code, data=api.receive("eth0")
|
|
msg="Received: "+data if code == RCode.SUCCESS else "Receive failed code="+str(code)
|
|
api.log(msg)
|
|
|