esds/tests/api_sendt_eth0_1s1r/sender.py

16 lines
341 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 sendt(node,timeout):
code=node.sendt("eth0","Hello World!",1,1,timeout)
msg="Send worked!" if code == RCode.SUCCESS else "Send failed"
2022-06-09 21:48:32 +02:00
node.log(msg)
def execute(api):
# Should work
sendt(api,2)
# Should not work
sendt(api,0.5)
# Should work
2022-07-02 14:03:36 +02:00
sendt(api,1)