2022-06-09 21:48:32 +02:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
def execute(api):
|
|
|
|
api.send("eth0","Hello World!",1,1)
|
|
|
|
api.send("eth0","Hello World!",1,1)
|
2022-07-01 13:05:33 +02:00
|
|
|
api.wait(1) # Goto t=3s
|
|
|
|
api.send("eth0","Hello World!",15,1) # Communication should not be aborted even if receiver turned_off (e.g UDP)
|
2022-07-01 18:12:28 +02:00
|
|
|
api.log("End transmission") # Should be printed at t=18s
|
2022-07-14 14:07:52 +02:00
|
|
|
api.send("eth0","Hello World!",15,1) # Now receiver is off (but send should continue)
|
|
|
|
api.log("End transmission") # Should be printed at t=33s
|
|
|
|
api.send("eth0","Hello World!",15,1,receiver_required=True) # Now receiver is off and send should be interrupted
|
|
|
|
api.log("End transmission") # Should be printed at t=35s (receiver turned off at t=35s)
|