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