embassy/embassy-net
Thales Fragoso aca0fb1065 net: Make the user pass in the StackResources in init
By having the user pass in the resources, we can make them generic, this way
the user can choose the size of the individual resources
2021-06-20 17:15:18 -03:00
..
src net: Make the user pass in the StackResources in init 2021-06-20 17:15:18 -03:00
Cargo.toml net: Add features for pool size and remove unwrap on smoltcp device 2021-06-16 16:48:35 +02:00
README.md Merge remote-tracking branch 'embassy-net/main' 2021-05-28 23:07:27 +02: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 it

cargo run --bin embassy-net-examples

License

This work is licensed under either of

at your option.