In development. It changes without notice.
Topic
Wi-Fi & HTTP Server
Wi-Fi as an access point and as a station, the HTTP server, the time from the network, and addresses.
The access point and the server run only in the portal (Wi-Fi Admin Portal). The station runs only for a time sync (Network Services). Bluetooth is off before either comes up, and both are down before the board sleeps.
The access point is WPA3 only, with protected management frames, unless its caller asks otherwise; a release build refuses that.
- See also
- Wi-Fi Admin Portal, Network Services
Files | |
| file | src/ |
| ESP-IDF HTTP server facade implementation. | |
| file | src/ |
| HTTP server facade for the admin portal and OTA upload. | |
| file | src/ |
| Strict literal-IPv4 (dotted-quad) validator — pure, host-testable. | |
| file | src/ |
| IPv4 address carried in an IPv4-mapped IPv6 address — pure, host-testable. | |
| file | src/ |
| One-shot SNTP query implementation (capture-only, IP-literal servers). | |
| file | src/ |
| One-shot SNTP time query against a literal IPv4 address (no DNS). | |
| file | src/ |
| IPv4 UDP socket implementation. | |
| file | src/ |
| UDP socket facade (IPv4 datagrams). | |
| file | src/ |
| WiFi SoftAP session implementation. | |
| file | src/ |
| WiFi SoftAP facade for ADMIN_MODE. | |
| file | src/ |
| Choosing the access point's channel from a survey of the networks around it. | |
| file | src/ |
| WiFi stop-and-deinit implementation. | |
| file | src/ |
| WiFi lifecycle facade. | |
| file | src/ |
| Filling and wiping the Wi-Fi driver's configuration record. | |
| file | src/ |
| WiFi station session implementation. | |
| file | src/ |
| WiFi station (STA) facade for joining an existing network. | |
Functions | |
| const char * | kleidos:: |
| Return a human-readable name for an HTTP method. | |
| constexpr bool | kleidos:: |
True when text is exactly a literal dotted-quad IPv4 address. | |
| constexpr bool | kleidos:: |
| Extract the IPv4 address from an IPv4-mapped IPv6 address. | |
| QueryStatus | kleidos:: |
| Query the current UTC time from one NTP server given by literal IPv4. | |
| const char * | kleidos:: |
| Return a compact lowercase label for a QueryStatus value. | |
| uint32_t | kleidos:: |
| Parse a dotted-decimal IPv4 string to a network-order uint32. | |
| bool | kleidos:: |
| True when an IPv4 address value indicates a parse failure. | |
| const char * | kleidos:: |
| Return a human-readable name for an AccessPointStatus value. | |
| constexpr uint64_t | kleidos:: |
| Load one network adds to a channel it overlaps. | |
| constexpr bool | kleidos:: |
| Whether a network's band overlaps a 20 MHz candidate channel. | |
| constexpr uint64_t | kleidos:: |
Load the surveyed networks put on channel. | |
| constexpr const char * | kleidos:: |
| Short name for where a network's secondary 20 MHz sits. | |
| constexpr uint8_t | kleidos:: |
| The candidate channel the surveyed networks load least. | |
| bool | kleidos:: |
| Set the transmit power ceiling of the Wi-Fi bring-up in progress. | |
| bool | kleidos:: |
| Read the radio settings the running Wi-Fi driver holds. | |
| const char * | kleidos:: |
| Return a short name for an SaePwe value. | |
| bool | kleidos:: |
| Read the PHY and MAC posture the chip is running. | |
| const char * | kleidos:: |
| Return a short name for a PowerSave value. | |
| const char * | kleidos:: |
| Return a short name for a PhyCalibration:: | |
| ShutdownStatus | kleidos:: |
| Stop WiFi and de-initialize the driver stack. | |
| bool | kleidos:: |
| Delete ESP-IDF's default event loop once the Wi-Fi driver is off. | |
| bool | kleidos:: |
| Whether the Wi-Fi driver is initialized. | |
| const char * | kleidos:: |
| Return a human-readable name for a ShutdownStatus value. | |
| template<size_ | |
| bool | kleidos:: |
Copy text into a fixed-size driver field, whole or not at all. | |
| SecondaryChannel | kleidos:: |
| Map the driver's secondary-channel position onto SecondaryChannel. | |
| wifi_ | kleidos:: |
| Map SecondaryChannel onto the driver's secondary-channel value. | |
| const char * | kleidos:: |
| Return a human-readable name for a StationStatus value. | |
| size_t | kleidos:: |
| Blocking one-shot scan for nearby access points (STA mode). | |
| const char * | kleidos:: |
| Return a compact lowercase label for a StationAuth value. | |
Variables | |
| constexpr size_t | kleidos:: |
| Longest dotted-quad text: "255.255.255.255" (15 chars, excluding the NUL). | |
| constexpr size_t | kleidos:: |
| Bytes in an IPv6 address. | |
| constexpr size_t | kleidos:: |
| Bytes in an IPv4 address. | |
| constexpr std::array< uint8_t, kIpv6AddressBytes - kIpv4AddressBytes > | kleidos:: |
Leading bytes of every IPv4-mapped IPv6 address (the ::ffff:0:0/96 prefix). | |
| constexpr uint8_t | kleidos:: |
| Buffer size for a dotted IPv4 string. | |
| constexpr uint8_t | kleidos:: |
| constexpr int8_t | kleidos:: |
| constexpr std::array< uint8_t, 3 > | kleidos:: |
| constexpr uint8_t | kleidos:: |
| Channel taken when no survey is available. | |
| constexpr int | kleidos:: |
| constexpr int | kleidos:: |
| Channels from a 40 MHz network's primary to the center of its secondary. | |
| constexpr int | kleidos:: |
| Received power at and below which a network adds the least load, dBm. | |
| constexpr int | kleidos:: |
| Received power at and above which a network adds the most load, dBm. | |
| constexpr int | kleidos:: |
| dB per doubling of a network's load: 3 dB doubles the power. | |
| constexpr uint8_t | kleidos:: |
| Characters of a country code, two letters plus the terminator. | |
| constexpr int8_t | kleidos:: |
| constexpr uint8_t | kleidos:: |
| Characters of the PHY library's version string, with room to spare. | |
| constexpr uint8_t | kleidos:: |
| constexpr size_t | kleidos:: |
| constexpr size_t | kleidos:: |
| Length of a 802.11 basic service set identifier (the access point's MAC). | |
| constexpr size_t | kleidos:: |
| Buffer size for a NUL-terminated SSID (802.11 max 32 bytes + NUL). | |
| constexpr size_t | kleidos:: |
| Maximum access points returned by scanNetworks. | |
Request inspection | |
| const char * | kleidos:: |
| Return the request URI string. | |
| Method | kleidos:: |
| Return the request method. | |
| size_t | kleidos:: |
| Return the declared Content-Length of the request body. | |
| size_t | kleidos:: |
| Return the length of a request header value. | |
| HeaderPresence | kleidos:: |
Whether the request carries header name at all. | |
| bool | kleidos:: |
Copy a request header value into output. | |
| int | kleidos:: |
| Read body bytes from the request. | |
| bool | kleidos:: |
| True when receive() returned a timeout result. | |
| int | kleidos:: |
| Return the underlying socket file descriptor for a request. | |
| uint32_t | kleidos:: |
| Return the peer IPv4 address for a request. | |
Response building | |
| bool | kleidos:: |
| Set the HTTP response status line. | |
| bool | kleidos:: |
| Set the Content-Type header. | |
| bool | kleidos:: |
| Add a response header. | |
| bool | kleidos:: |
| Send the response body. | |
| bool | kleidos:: |
| Send one chunk of a chunked (streaming) response. | |
Native test seam | |
| void | kleidos:: |
| Install a host-test backend for the request/ | |
Enumeration Type Documentation
AccessPointStatus #
Access point start/error status.
| Value | Meaning |
|---|---|
Stopped | AP is not running (initial state and after stop()). |
Started | AP started successfully. |
NetifInitFailed | esp_ failed. |
EventLoopFailed | Default event loop creation failed. |
NetifCreateFailed | AP netif allocation failed. |
WifiInitFailed | WiFi driver init failed. |
EventRegisterFailed | WiFi event handler registration failed. |
StorageFailed | WiFi storage configuration failed. |
ModeFailed | Setting AP mode failed. |
ConfigFailed | The SSID or password does not fit the driver, or applying the AP config failed. |
StartFailed | Starting WiFi failed. |
BandwidthFailed | The driver refused the 40 MHz width AccessPointConfig:: asked for. |
HeaderPresence #
Whether a request carries a header, as the transport answers.
| Value | Meaning |
|---|---|
Present | The request carries the header; its value may be empty. |
Absent | The request carries no such header. |
Unknown | The transport could not say (no request, or one it does not hold). |
Method #
PowerSave #
Whether and how a station sleeps between its access point's beacons.
| Value | Meaning |
|---|---|
None | The receiver stays on; what every Kleidos station session asks for. |
MinModem | The station wakes for each DTIM beacon. |
MaxModem | The station wakes on its own longer listen interval. |
Unknown | The driver reported something else. |
QueryStatus #
Result of a one-shot SNTP query.
| Value | Meaning |
|---|---|
Synced | A server response arrived; the epoch output is valid. |
InvalidAddress | The server string did not parse as a literal IPv4. |
Busy | Another query is already in flight. |
Timeout | No response within the configured window. |
Aborted | The abort predicate returned true mid-wait. |
ReceiveStatus #
SaePwe #
SAE password-element derivation an access point accepts.
| Value | Meaning |
|---|---|
Unspecified | The driver's default. |
HuntAndPeck | The legacy hunting-and-pecking derivation only. |
HashToElement | Hash-to-element (H2E) only. |
Both | Either derivation. |
SecondaryChannel #
ShutdownStatus #
Result of stopAndDeinit().
| Value | Meaning |
|---|---|
Stopped | WiFi was running, was stopped, and was de-initialized. |
AlreadyOff | The driver was not initialized when the call ran. |
StopFailed | esp_ returned an error other than NOT-INIT / NOT-STARTED. |
DeinitFailed | esp_ returned an error. |
StationAuth #
Coarse authentication class of a scanned access point.
Collapses the esp_wifi authmode zoo into the classes Kleidos cares about: whether a PSK join is possible and which family protects it.
StationBandwidth #
How wide a channel the station offers to use.
A station negotiates its width with the access point: left at the driver's own default it accepts a 40 MHz network's secondary half, and the driver configures the PHY for both halves before the authentication exchange. The width is therefore stated on every join rather than inherited, as the access point's is.
Twenty is the default because 20 MHz is what every shipping station session needs – the clock sync is a handful of packets – and what Espressif recommends on a crowded channel. It is a posture, not a remedy for a join that fails. Forty is asked for by the debug-only QA video stream alone, the one station consumer whose job is throughput.
StationStatus #
Station start/error status.
| Value | Meaning |
|---|---|
Stopped | STA is not running (initial state and after stop()). |
Connected | Joined the network and obtained an IP. |
NetifInitFailed | esp_ failed. |
EventLoopFailed | Default event loop creation failed. |
NetifCreateFailed | STA netif allocation failed. |
WifiInitFailed | WiFi driver init failed. |
EventRegisterFailed | Event handler registration failed. |
StorageFailed | WiFi storage configuration failed. |
ModeFailed | Setting STA mode failed. |
LocalMacFailed | The driver refused the address StationConfig:: named. |
ConfigFailed | The SSID or passphrase does not fit the driver, or applying the STA config failed. |
StartFailed | Starting WiFi failed. |
ConnectFailed | esp_ returned an error. |
IpTimeout | No IP lease within the configured timeout. |
Function Documentation
accessPointStatusName() #
Return a human-readable name for an AccessPointStatus value.
- Parameters
-
Name Meaning status Status enum value to name.
- Returns
- Pointer to a static string.
applyMaxTxPower() #
Set the transmit power ceiling of the Wi-Fi bring-up in progress.
The driver keeps the last ceiling it was given through esp_, so every bring-up states its own once esp_ has returned: the access point its arm's-length cap, a station session and a scan kFullTxPowerQdbm. A station or a scan that left it alone after the access point ran would transmit at the access point's cap until the next reset. A refusal is logged; the radio then keeps the ceiling it had.
- Parameters
-
Name Meaning qdbm Ceiling in 0.25 dBm steps, within [8, 84].
- Return values
-
Value Meaning true The driver took the ceiling. false The driver refused it (not started, out of range), or on the native build.
calibrationModeName() #
Return a short name for a PhyCalibration::
- Parameters
-
Name Meaning mode ESP-IDF's calibration-mode number.
- Returns
- "partial", "none", "full" or "unknown".
channelLoad() #
Load the surveyed networks put on channel.
- Parameters
-
Name Meaning channel Candidate channel. observations Networks the survey heard.
- Returns
- Sum of networkLoad over the networks that overlap
channel.
copyDriverField() #
Copy text into a fixed-size driver field, whole or not at all.
The field is zeroed first, so a shorter value is zero-padded and a value of exactly N bytes fills the field without a terminator, which is how the driver reads a full-length SSID or a hex PSK.
- Template Parameters
-
Name Meaning N Size of the field in bytes.
- Parameters
-
Name Direction Meaning field out Driver field (an SSID or password member of the record). text in NUL-terminated value; nullptr reads as empty.
- Return values
-
Value Meaning true textfit and was copied.false textis longer thanNbytes; the field is left zeroed.
driverInitialized() #
Whether the Wi-Fi driver is initialized.
True from esp_ until esp_, whichever mode the driver runs and whether or not it is started: the span during which the Wi-Fi MAC and radio depend on the clocks the driver was brought up on. The CPU clock control (system.h) asks the driver the same question itself, since it sits below this facade.
- Return values
-
Value Meaning true The driver is initialized. false The driver is not initialized, or on the native build.
driverSecondaryFor() #
Map SecondaryChannel onto the driver's secondary-channel value.
- Parameters
-
Name Meaning secondary Where the secondary 20 MHz should sit.
- Returns
- The driver's spelling of it.
ipv4FromMappedIpv6() #
Extract the IPv4 address from an IPv4-mapped IPv6 address.
Accepts only the ::ffff:0:0/96 prefix. Every other IPv6 address — a native IPv6 peer, the unspecified address, the deprecated IPv4-compatible form ::a.b.c.d — is refused, so a caller that treats a refusal as "unknown peer" fails closed.
- Parameters
-
Name Direction Meaning ipv6 in The 16 address bytes, in wire (network) order. outNetOrder out The IPv4 address in network byte order (the layout of sockaddr_). Written only on success; left untouched otherwise.in:: sin_ addr.s_ addr
- Return values
-
Value Meaning true ipv6is IPv4-mapped;outNetOrderholds its IPv4 address.false ipv6is not IPv4-mapped.
isInvalidIpv4Address() #
True when an IPv4 address value indicates a parse failure.
- Parameters
-
Name Direction Meaning address in Network-byte-order value returned by parseIpv4Address().
- Return values
-
Value Meaning true addressequalsINADDR_NONE(parse failure marker).false addressis a valid IPv4 value.
isLiteralIpv4() #
True when text is exactly a literal dotted-quad IPv4 address.
Strict: exactly four decimal octets 0..255 separated by single dots, digits and dots only. Anything else — letters (hostnames), empty octets, leading '+'/'-', a fifth octet, IPv6 colons, ports, whitespace — is rejected. Leading zeros are accepted ("010.0.0.1" reads as 10.0.0.1, matching the lwIP parser the SNTP facade re-checks with).
- Parameters
-
Name Direction Meaning text in NUL-terminated candidate string (nullptr is rejected).
- Return values
-
Value Meaning true textis a literal IPv4 address.false Not a plain dotted quad; must not reach any resolver.
isReceiveTimeout() #
leastLoadedChannel() #
The candidate channel the surveyed networks load least.
A tie goes to the earlier candidate in kAccessPointChannels, so an empty survey keeps kFallbackAccessPointChannel.
- Parameters
-
Name Meaning observations Networks the survey heard.
- Returns
- One of kAccessPointChannels.
methodName() #
Return a human-readable name for an HTTP method.
- Parameters
-
Name Meaning method HTTP method enum value.
- Returns
- Static string such as "GET", "POST", or "DELETE".
networkLoad() #
Load one network adds to a channel it overlaps.
Its power above kLoadFloorDbm, doubled every kDbPerDoubling dB: a network 3 dB stronger counts twice as much, as its power does.
- Parameters
-
Name Meaning rssi Received power, dBm.
- Returns
- Load, at least 1.
overlaps() #
Whether a network's band overlaps a 20 MHz candidate channel.
Bands are compared on the 5 MHz channel grid: a 20 MHz band spans its center plus or minus kHalfBandChannels, a 40 MHz one its primary and secondary 20 MHz halves.
- Parameters
-
Name Meaning observation The network. channel Candidate channel.
- Return values
-
Value Meaning true Their bands overlap.
parseIpv4Address() #
Parse a dotted-decimal IPv4 string to a network-order uint32.
- Parameters
-
Name Direction Meaning address in NUL-terminated IPv4 string (e.g., "192.168.4.1").
- Returns
- Network-byte-order IPv4 address, or INADDR_NONE on parse failure.
powerSaveName() #
Return a short name for a PowerSave value.
- Parameters
-
Name Meaning mode Posture to name.
- Returns
- "none", "min_modem", "max_modem" or "unknown".
queryStatusName() #
Return a compact lowercase label for a QueryStatus value.
- Parameters
-
Name Meaning status Status enum value to name.
- Returns
- Pointer to a static string.
queryTime() #
Query the current UTC time from one NTP server given by literal IPv4.
Parses serverIpv4 with the lwIP address parser (no DNS lookup on any path), runs the SNTP app in poll mode until the first response or the deadline, and ALWAYS stops the SNTP app before returning. The system clock is not modified.
- Parameters
-
Name Direction Meaning serverIpv4 in Literal dotted-quad server address (e.g. "162.159.200.1"). timeoutMs in Maximum wait for a server response. epochOut out Receives the server UTC time as UNIX seconds on Synced; untouched otherwise.shouldAbort in Optional predicate polled every wait slice; return true to abort early (may be nullptr).
- Returns
- The query outcome (see QueryStatus).
readPhySettings() #
Read the PHY and MAC posture the chip is running.
The calibration half is filled either way; the rest needs the driver initialized, since channel, width, generations and power save are the driver's to report.
- Parameters
-
Name Direction Meaning out out Snapshot; reset to its defaults first.
- Return values
-
Value Meaning true Something was filled: on device, always. false On the native build, where there is no PHY.
readRadioSettings() #
Read the radio settings the running Wi-Fi driver holds.
Channel, country (code, allowed channel range, whether a station follows its access point's), transmit power ceiling and, with the access point on, its beacon interval and WPA3 / PMF configuration: what the driver applied, which can be compared between two boards on the air.
- Parameters
-
Name Direction Meaning out out Snapshot; reset to its defaults first.
- Return values
-
Value Meaning true The driver is initialized; outholds its settings.false The driver is off, or on the native build.
receive() #
Read body bytes from the request.
- Parameters
-
Name Meaning request Opaque per-request handle. output Destination buffer. outputLength Maximum bytes to read.
- Returns
- Bytes read on success; negative on error (use isReceiveTimeout() to distinguish).
releaseEventLoop() #
Delete ESP-IDF's default event loop once the Wi-Fi driver is off.
Every Wi-Fi bring-up (the access point, a station session, a one-shot scan) creates the default event loop and its sys_evt task. Each one's teardown calls this last, after its netif is destroyed, so the loop and its task go with the radio. lwIP's tcpip task stays: ESP-IDF cannot de-initialize lwIP (esp_ answers ESP_), so the first bring-up of a boot starts it for the rest of that boot.
Left alone while the driver is still initialized: a bring-up that owns the loop is then still running.
- Return values
-
Value Meaning true The loop was deleted, or none was running. false The driver is still initialized, or the deletion failed.
requestContentLength() #
Return the declared Content-Length of the request body.
- Parameters
-
Name Meaning request Opaque per-request handle.
- Returns
- Content-Length in bytes; 0 when absent.
requestHeaderPresence() #
Whether the request carries header name at all.
Tells a header sent empty from one not sent, which requestHeaderValueLength reports alike as 0. Copies nothing of the value.
- Parameters
-
Name Meaning request Opaque per-request handle. name Header field name (case-insensitive).
- Returns
Present,Absent, orUnknownwhen the transport could not say.
requestHeaderValue() #
Copy a request header value into output.
- Parameters
-
Name Meaning request Opaque per-request handle. name Header field name. output Destination buffer. outputLength Buffer size in bytes.
- Returns
- True when the header was found and the value fits in the buffer.
requestHeaderValueLength() #
Return the length of a request header value.
- Parameters
-
Name Meaning request Opaque per-request handle. name Header field name (case-insensitive).
- Returns
- Header value length in bytes; 0 if not present.
requestMethod() #
Return the request method.
- Parameters
-
Name Meaning request Opaque per-request handle.
- Return values
-
Value Meaning Method::Any Wildcard method (no parsed value). Method::Get HTTP GET. Method::Post HTTP POST. Method:: Delete HTTP DELETE.
requestPeerIpv4() #
Return the peer IPv4 address for a request.
The server's listening socket is dual-stack whenever lwIP is built with IPv6, so getpeername() reports an IPv4 client as the IPv4-mapped IPv6 address ::; the IPv4 address is taken from its last four bytes (kleidos::AF_INET and the address is read as is.
- Parameters
-
Name Meaning request Opaque per-request handle.
- Returns
- IPv4 address in network byte order, or 0 when the peer has none to report: the socket is gone,
getpeername()fails, or the peer is a native IPv6 client. Callers keying state by peer must treat 0 as one shared "unknown peer", never as a distinct client.
requestSocketFd() #
Return the underlying socket file descriptor for a request.
- Parameters
-
Name Meaning request Opaque per-request handle.
- Returns
- Socket fd; negative on error.
requestUri() #
Return the request URI string.
- Parameters
-
Name Meaning request Opaque per-request handle.
- Returns
- NUL-terminated URI string; valid for the lifetime of the request.
saePweName() #
Return a short name for an SaePwe value.
- Parameters
-
Name Meaning pwe Derivation to name.
- Returns
- "unspecified", "hnp", "h2e" or "both".
scanNetworks() #
Blocking one-shot scan for nearby access points (STA mode).
Brings the WiFi driver up in station mode just for the scan and ALWAYS tears it back down before returning (via stopAndDeinit, then the scan netif and releaseEventLoop), so the radio and the event loop's task are off on every exit path; only lwIP's tcpip task stays (see releaseEventLoop). Hidden-SSID entries are skipped. Results are ordered strongest-RSSI first.
- Warning
- Do not call while a StationSession, the SoftAP admin portal, or BLE is active — the caller owns the radio-exclusivity policy.
- Note
- Blocks the calling task for the duration of the scan (typically 1.5–3 s). Call from a services/
console task, never the render loop.
- Parameters
-
Name Direction Meaning out out Destination array for the discovered access points. capacity in Capacity of outin records.
- Returns
- Number of records written to
out(0 on failure or empty air).
secondaryChannelName() #
Short name for where a network's secondary 20 MHz sits.
- Parameters
-
Name Meaning secondary The position to name.
- Returns
- "20" for a 20 MHz network, "40u" for a secondary above the primary, "40d" for one below.
secondaryFrom() #
Map the driver's secondary-channel position onto SecondaryChannel.
- Parameters
-
Name Meaning second The driver's value.
- Returns
SecondaryChannel::orAbove Belowfor a 40 MHz network,Nonefor a 20 MHz one.
sendResponse() #
Send the response body.
- Parameters
-
Name Meaning request Opaque per-request handle. data Pointer to the body data. length Number of bytes to send.
- Return values
-
Value Meaning true Response body was sent. false Server reported a send error.
sendResponseChunk() #
Send one chunk of a chunked (streaming) response.
Wraps httpd_length 0 (sends the zero-length terminating chunk). Used by the debug-only QA video stream to push framebuffer frames continuously.
- Parameters
-
Name Meaning request Opaque per-request handle. data Pointer to the chunk bytes (may be null when lengthis 0).length Number of bytes in this chunk; 0 terminates the response.
- Return values
-
Value Meaning true Chunk was sent (or the stream was terminated). false Server reported a send error (e.g. the peer disconnected).
setResponseHeader() #
Add a response header.
- Parameters
-
Name Meaning request Opaque per-request handle. name Header field name. value Header field value.
- Return values
-
Value Meaning true Header was added to the response. false Server reported an error adding the header.
setResponseStatus() #
Set the HTTP response status line.
- Parameters
-
Name Meaning request Opaque per-request handle. statusText Status string, e.g., "200 OK" or "404 Not Found".
- Return values
-
Value Meaning true Status line was set on the response. false Server reported an error setting the status.
setResponseType() #
Set the Content-Type header.
- Parameters
-
Name Meaning request Opaque per-request handle. contentType MIME type string.
- Return values
-
Value Meaning true Content-Type was set on the response. false Server reported an error setting the header.
setTestBackend() #
Install a host-test backend for the request/
- Parameters
-
Name Meaning backend Pointer to a backend that outlives the test; nullptr clears it.
shutdownStatusName() #
Return a human-readable name for a ShutdownStatus value.
- Parameters
-
Name Meaning status Status enum value to name.
- Returns
- Pointer to a static string.
stationAuthName() #
Return a compact lowercase label for a StationAuth value.
- Parameters
-
Name Meaning auth Authentication class to name.
- Returns
- Pointer to a static string ("open", "wep", "wpa", "wpa2", "wpa3", "enterprise" or "other").
stationStatusName() #
Return a human-readable name for a StationStatus value.
- Parameters
-
Name Meaning status Status enum value to name.
- Returns
- Pointer to a static string.
stopAndDeinit() #
Stop WiFi and de-initialize the driver stack.
- Return values
-
Value Meaning ShutdownStatus:: Stopped WiFi was running, was stopped, and de-initialized. ShutdownStatus:: AlreadyOff WiFi was not initialized when called. ShutdownStatus:: StopFailed esp_returned an unexpected error.wifi_ stop() ShutdownStatus:: DeinitFailed esp_returned an error.wifi_ deinit()
Variable Documentation
kAccessPointChannels #
The candidates: the three 2.4 GHz channels that do not overlap one another, allowed in every regulatory domain, including ESP-IDF's world safe mode.
kDefaultMaxTxPowerQdbm #
Default SoftAP max TX power in 0.25 dBm steps (11 dBm). Caps the RF radius to an arm's-length admin use case and lowers TX current; range is [8, 84].
kFullTxPowerQdbm #
Transmit power ceiling of a station session or a scan, 0.25 dBm steps: the PHY's 20 dBm maximum, the ceiling the driver starts at after a reset.
kHalfBandChannels #
Channels, of 5 MHz each, a 20 MHz band spans beyond its center on either side short of the next band that no longer overlaps it.
kPassphraseTextLength #
Buffer size for a NUL-terminated station passphrase: the driver's 64-byte field (a 63-character WPA passphrase or a 64-digit hex PSK) plus the NUL.
kStationIpTextLength #
Buffer size for a dotted IPv4 string.
kSurveyChannel #
AccessPointConfig::