Cargo Features
[dependencies]
esp-wifi = { version = "0.5.1", default-features = false, features = ["esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32", "esp32s2", "esp32s3", "async", "embassy-net", "coex", "dump-packets", "smoltcp", "utils", "enumset", "wifi", "embedded-svc", "ble", "ps-max-modem", "esp-now", "ipv6", "ipv4", "tcp", "udp", "icmp", "igmp", "dns", "dhcpv4", "wifi-default", "defmt", "log"] }
- default = log
-
The
log
feature is set by default wheneveresp-wifi
is added without
somewhere in the dependency tree.default-features = false - esp32c2
-
chip features
Enables esp32c2 of esp-backtrace, esp-hal, esp-println, and esp-wifi-sys
- esp32c3
-
Enables esp32c3 of esp-backtrace, esp-hal, esp-println, and esp-wifi-sys
esp-hal:
Target the ESP32-C3.
- esp32c6
-
Enables esp32c6 of esp-backtrace, esp-hal, esp-println, and esp-wifi-sys
esp-hal:
Target the ESP32-C6.
- esp32h2
-
Enables esp32h2 of esp-backtrace, esp-hal, esp-println, and esp-wifi-sys
esp-hal:
Target the ESP32-H2.
- esp32
-
Enables esp32 of esp-backtrace, esp-hal, esp-println, and esp-wifi-sys
esp-backtrace:
You must enable exactly one of the below features to support the correct chip:
- esp32s2
-
Enables esp32s2 of esp-backtrace, esp-hal, esp-println, and esp-wifi-sys
esp-hal:
Target the ESP32-S2.
- esp32s3
-
Enables esp32s3 of esp-backtrace, esp-hal, esp-println, and esp-wifi-sys
esp-hal:
Target the ESP32-S3.
- async embassy-net?
-
async features
Enables embassy-futures, embassy-sync, and embedded-io-async, async and embassy of esp-hal
Affects
btdm::have_hci_read_data
,controller::asynch
,npl::have_hci_read_data
… - embassy-net = async
-
Enables embassy-net-driver
- coex
-
misc features
- wifi-logs dump-packets
- smoltcp utils?
-
Enables smoltcp
- utils dhcpv4? ipv4? ipv6? = smoltcp
-
Affects
wifi::utils
… - enumset
- wifi dhcpv4? esp-now? ipv4? ipv6?
-
Enables enumset and no-std-net
Affects
esp-wifi::wifi
,esp-wifi::wifi_interface
… - embedded-svc
-
Enables embedded-svc
- ble
-
Affects
esp-wifi::ble
… - phy-enable-usb ps-min-modem ps-max-modem
- esp-now = wifi
-
Affects
esp-wifi::esp_now
… - ipv6 = utils, wifi
-
Enables proto-ipv6 of optional smoltcp
- ipv4 icmp? igmp? tcp? udp? wifi-default? = utils, wifi
-
Enables proto-ipv4 of optional smoltcp
- tcp wifi-default? = ipv4
-
Enables socket-tcp of optional smoltcp
Affects
wifi_interface::Socket
,esp-wifi::wifi_interface
… - udp dns? wifi-default? = ipv4
-
Enables socket-udp of optional smoltcp
Affects
wifi_interface::UdpSocket
,esp-wifi::wifi_interface
… - icmp wifi-default? = ipv4
-
Enables socket-icmp of optional smoltcp
- igmp wifi-default? = ipv4
-
Enables proto-igmp of optional smoltcp
- dns wifi-default? = udp
-
Enables proto-dns and socket-dns of optional smoltcp
- dhcpv4 wifi-default? = utils, wifi
-
Enables proto-dhcpv4 and socket-dhcpv4 of optional smoltcp
- wifi-default = dhcpv4, dns, icmp, igmp, ipv4, tcp, udp
- defmt
-
Enables defmt and defmt of esp-hal and optional smoltcp
esp-hal:
Implement
defmt::Format
on certain types. - log default
-
Enables log and log of esp-hal
esp-hal:
Enable logging output using the
log
crate.