mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-07-06 19:27:39 +00:00
Init ESDS repository
This commit is contained in:
commit
c2e6aad09f
106 changed files with 2638 additions and 0 deletions
13
tests/simple_sendt_wlan0_1s2r/receiver.py
Normal file
13
tests/simple_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