Debug synchronization + add return code

This commit is contained in:
Loic Guegan 2022-09-09 13:16:42 +02:00
parent 57f020e09d
commit cfa677a0c6
21 changed files with 107 additions and 71 deletions

View file

@ -1,8 +1,9 @@
#!/usr/bin/env python
from esds import RCode
def sendt(node,timeout):
code=node.sendt("eth0","Hello World!",1,1,timeout)
msg="Send worked!" if code == 0 else "Send failed"
msg="Send worked!" if code == RCode.SUCCESS else "Send failed"
node.log(msg)
def execute(api):