Update manual

This commit is contained in:
Loic Guegan 2022-09-12 13:22:46 +02:00
parent c75fbe854d
commit 47c71c85c9
6 changed files with 62 additions and 7 deletions

Binary file not shown.

6
manual/assets/node.py Normal file
View file

@ -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")

3
manual/assets/output.txt Normal file
View file

@ -0,0 +1,3 @@
[t=0.000,src=n0] Send 10 bytes on wlan0
[t=0.016,src=n1] Receive 10 bytes on wlan0
[t=0.016,src=esds] Simulation ends

View file

@ -0,0 +1,19 @@
general:
interferences: on # Turns on interferences
nodes:
count: 2
implementations:
- all node.py
arguments: {
"0": "sender",
"1": "receiver"
}
interfaces:
wlan0:
type: "wireless"
links:
- all 50kbps 0s all # All nodes are reachable by each other
txperfs:
- all 50kbps 0s