aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 000000000..64f656709
--- /dev/null
+++ b/README.md
@@ -0,0 +1,34 @@
1# embassy-net
2
3embassy-net contains an async network API based on smoltcp and embassy, designed
4for embedded systems.
5
6## Running the example
7
8First, create the tap0 interface. You only need to do this once.
9
10```sh
11sudo ip tuntap add name tap0 mode tap user $USER
12sudo ip link set tap0 up
13sudo ip addr add 192.168.69.100/24 dev tap0
14sudo ip -6 addr add fe80::100/64 dev tap0
15sudo ip -6 addr add fdaa::100/64 dev tap0
16sudo ip -6 route add fe80::/64 dev tap0
17sudo ip -6 route add fdaa::/64 dev tap0
18```
19
20Then, run it
21
22```sh
23cargo run --bin embassy-net-examples
24```
25
26## License
27
28This work is licensed under either of
29
30- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
31 http://www.apache.org/licenses/LICENSE-2.0)
32- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
33
34at your option.