embassy/examples/std
2024-11-06 13:58:02 +01:00
..
src Update smoltcp, embedded-nal-async to use the core::net IP addr types. 2024-10-07 00:22:44 +02:00
Cargo.toml Prep executor 0.6.2 2024-11-06 13:58:02 +01:00
README.md fix: typo in netcat command for std example 2024-01-29 11:36:03 +01:00

Running the embassy-net examples

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 -lp 8000

Then run the example located in the examples folder:

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