summaryrefslogtreecommitdiff
path: root/manual/assets/node.py
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-09-12 13:22:46 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2022-09-12 13:22:46 +0200
commit47c71c85c9d018fc42a7182fc7f6265e3a4e5388 (patch)
treedc1f0a2860349e8bfe85f4f6f9cce202fbbe604d /manual/assets/node.py
parentc75fbe854de2a0a881045fbd19a79eb8dcc898e2 (diff)
Update manual
Diffstat (limited to 'manual/assets/node.py')
-rw-r--r--manual/assets/node.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/manual/assets/node.py b/manual/assets/node.py
new file mode 100644
index 0000000..4c03dbf
--- /dev/null
+++ b/manual/assets/node.py
@@ -0,0 +1,6 @@
+def execute(api):
+ role=api.args # "sender" or "receiver" cf. platform.yaml
+ if role == "sender":
+ api.send("wlan0","MY MESSAGE",10,None)
+ else:
+ api.receive("wlan0")