pub struct WifiSection {
pub mode: Option<String>,
pub channel: Option<u8>,
pub sta_ssid: Option<String>,
pub ap_ssid: Option<String>,
pub ap_password: Option<String>,
pub ap_dhcp: Option<bool>,
pub ap_leases: Option<u8>,
pub ap_burst: Option<bool>,
pub peer_mac: Option<String>,
pub ht40: Option<String>,
}Expand description
[WiFi] section in show-config.
Fields§
§mode: Option<String>node_mode — sniffer | station | wifi-ap | esp-now-central |
esp-now-peripheral | esp-now-fast-collector | esp-now-fast-source.
channel: Option<u8>channel — u8. Valid Wi-Fi 2.4 GHz: 1..=14.
sta_ssid: Option<String>sta_ssid — UTF-8, ≤ 32 B.
ap_ssid: Option<String>ap_ssid — softAP SSID for wifi-ap mode. Default esp-csi-ap.
ap_password: Option<String>ap_password — intentionally not cached (same policy as sta_password).
ap_dhcp: Option<bool>serve_dhcp — built-in DHCP server in wifi-ap mode.
ap_leases: Option<u8>ap_lease_count — DHCP lease pool size in wifi-ap mode (1–8).
Reported as AP Leases in show-config.
ap_burst: Option<bool>ap_sync_burst — synchronized burst flood in wifi-ap mode.
Reported as AP Burst in show-config.
peer_mac: Option<String>peer_mac — explicit ESP-NOW source-MAC filter, or auto for the
default magic-prefix pairing. ESP-NOW modes only.
ht40: Option<String>ht40_secondary — forced ESP-NOW TX secondary channel:
above | below | none (HT20/legacy). ESP-NOW modes only.
Trait Implementations§
Source§impl Clone for WifiSection
impl Clone for WifiSection
Source§fn clone(&self) -> WifiSection
fn clone(&self) -> WifiSection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more