embassy/embassy-net
bors[bot] 6ffca81a38
Merge #880
880: Add UDP socket support r=Dirbaio a=arturkow2000



Co-authored-by: Artur Kowalski <artur.kowalski@3mdeb.com>
Co-authored-by: Artur Kowalski <arturkow2000@gmail.com>
2022-08-11 14:17:11 +00:00
..
src Merge #880 2022-08-11 14:17:11 +00:00
Cargo.toml Add UDP socket support 2022-08-10 19:40:35 +02:00
README.md Fix embassy-net documentation of running examples. 2021-12-06 14:59:15 +01: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

Then run the example located in the examples folder:

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

License

This work is licensed under either of

at your option.