mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-19 03:59:45 +00:00
Improve tests
This commit is contained in:
parent
1bef51d878
commit
d0ae9f3296
85 changed files with 77 additions and 44 deletions
13
tests/api_sendt_wlan0_1s2r/receiver.py
Normal file
13
tests/api_sendt_wlan0_1s2r/receiver.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
def receive(node):
|
||||
##### Simple receive
|
||||
code, data=node.receive("wlan0")
|
||||
msg="Received: "+data if code == 0 else "Receive failed code="+str(code)
|
||||
node.log(msg)
|
||||
|
||||
|
||||
def execute(api):
|
||||
# Should works for all receivers
|
||||
receive(api)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue