esds/tests/api_sendt_eth0_1s1r/receiver.py

13 lines
286 B
Python
Raw Normal View History

2022-06-09 21:48:32 +02:00
#!/usr/bin/env python
from esds import RCode
2022-06-09 21:48:32 +02:00
def receive(node):
##### Simple receive
code, data=node.receive("eth0")
msg="Received: "+data if code == RCode.SUCCESS else "Receive failed code="+str(code)
2022-06-09 21:48:32 +02:00
node.log(msg)
def execute(api):
receive(api)
receive(api)