embassy/embassy-net
Ulf Lilleengen 2a0ea52878
add missing copy of icmpv6 checksum
add proto-ipv6 feature to stm32h7 example to catch issues in CI
2023-01-24 10:25:37 +01:00
..
src add missing copy of icmpv6 checksum 2023-01-24 10:25:37 +01:00
Cargo.toml net: update smoltcp. 2023-01-19 14:44:01 +01:00
README.md fix net README.md 2022-12-13 14:06:37 +08:00

embassy-net

embassy-net contains an async network API based on smoltcp and embassy, designed for embedded systems.

Running the example

First, create the tap0 interface. You only need to do this once.

sudo ip tuntap add name tap0 mode tap user $USER
sudo ip link set tap0 up
sudo ip addr add 192.168.69.100/24 dev tap0
sudo ip -6 addr add fe80::100/64 dev tap0
sudo ip -6 addr add fdaa::100/64 dev tap0
sudo ip -6 route add fe80::/64 dev tap0
sudo ip -6 route add fdaa::/64 dev tap0

Second, have something listening there. For example nc -l 8000

Then run the example located in the examples folder:

cd $EMBASSY_ROOT/examples/std/
cargo run --bin net -- --static-ip

License

This work is licensed under either of

at your option.