Update user manual

This commit is contained in:
Loic Guegan 2023-06-29 11:10:26 +02:00
parent c1ac340350
commit 0177500584
5 changed files with 37 additions and 16 deletions

View file

@ -10,8 +10,8 @@ L=np.full((n,n),0) # Latency 0s
s=esds.Simulator({"wlan0":{"bandwidth":B, "latency":L, "is_wired":False}})
##### Instantiate nodes with their implementation
s.create_node("node",args="sender") # Use node.py for the first node with "sender" as argument
s.create_node("node",args="receiver") # Now the second node
s.create_node("node",interfaces=["wlan0"],args="sender") # Use node.py for the first node, specify the vailable communication interfaces and use "sender" as argument
s.create_node("node",interfaces=["wlan0"],args="receiver") # Now the second node
##### Run the simulation
s.run(interferences=True)

View file

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

View file

@ -12,6 +12,7 @@ nodes:
interfaces:
wlan0:
type: "wireless"
nodes: all # All nodes are connected to this network
links:
- all 50kbps 0s all # All nodes are reachable by each other
txperfs: