embassy/examples/std
Piotr Esden-Tempski 858ddf6777 Added debug=2 in release profile to all examples.
This makes rtt output work right when using `cargo run` in release mode.

Debug was already enabled for release builds in some of the examples but
not all.
2023-07-26 18:32:40 -07:00
..
src net: Support dual stack IP 2023-06-07 13:18:19 +02:00
Cargo.toml Added debug=2 in release profile to all examples. 2023-07-26 18:32:40 -07:00
README.md Release embassy-net v0.1 2023-06-29 19:55:32 +02: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 -l 8000

Then run the example located in the examples folder:

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