blob: 021b8541dcf97742286d4cbf6e59bc891c596abc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/env python
from esds import RCode
def receivet(node,timeout):
##### Simple receive
code, data=node.receivet("eth0",timeout)
msg="Received: "+data if code == RCode.SUCCESS else "Receive failed code="+str(code)
node.log(msg)
def execute(api):
# Should not works since communication start at t=0s
receivet(api,0)
api.wait(1)
# Now communication started
receivet(api,0) # Should work (no timeout error)
|