mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-05-10 09:57:31 +00:00
Change API. Indeed, currently wired communications
are aborted when receiver node turned off. This may not be desire when implementing UDP communications. Now user can use a boolean when using send()/sendt() to change this behavior.
This commit is contained in:
parent
48ca1f43f2
commit
1eee1ac81a
5 changed files with 49 additions and 32 deletions
tests/api_send_eth0_1s1r
|
@ -17,4 +17,10 @@ def execute(api):
|
|||
code, data=api.receivet("eth0",1)
|
||||
msg="Received: "+data if code == 0 else "Receive failed code="+str(code)
|
||||
api.log(msg)
|
||||
|
||||
##### Ensure data is not receive turned off but communication is not cancel
|
||||
api.turn_off()
|
||||
api.wait(1)
|
||||
api.turn_on()
|
||||
code, data=api.receivet("eth0",1)
|
||||
msg="Received: "+data if code == 0 else "Receive failed code="+str(code)
|
||||
api.log(msg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue