EasyManua.ls Logo

Espressif ESP32-S2 - Page 704

Espressif ESP32-S2
1695 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 2. API Reference
void wifi_prov_scheme_softap_set_httpd_handle(void *handle)
Provide HTTPD Server handle externally.
Useful in cases wherein applications need the webserver for some different operations, and do not want the wifi
provisioning component to start/stop a new instance.
Note This API should be called before wifi_prov_mgr_start_provisioning()
Parameters
[in] handle: Handle to HTTPD server instance
Header File
components/wifi_provisioning/include/wifi_provisioning/scheme_console.h
Header File
components/wifi_provisioning/include/wifi_provisioning/wifi_config.h
Functions
esp_err_t wifi_prov_config_data_handler(uint32_t session_id, const uint8_t *inbuf, ssize_t
inlen, uint8_t **outbuf, ssize_t *outlen, void
*priv_data)
Handler for receiving and responding to requests from master.
This is to be registered as the
wifi_config
endpoint handler (protocomm
proto-
comm_req_handler_t) using protocomm_add_endpoint()
Structures
struct wifi_prov_sta_conn_info_t
WiFi STA connected status information.
Public Members
char ip_addr[IP4ADDR_STRLEN_MAX]
IP Address received by station
char bssid[6]
BSSID of the AP to which connection was estalished
char ssid[33]
SSID of the to which connection was estalished
uint8_t channel
Channel of the AP
uint8_t auth_mode
Authorization mode of the AP
struct wifi_prov_config_get_data_t
WiFi status data to be sent in response to get_status request from master.
Public Members
wifi_prov_sta_state_t wifi_state
WiFi state of the station
wifi_prov_sta_fail_reason_t fail_reason
Reason for disconnection (valid only when wifi_state is WIFI_STATION_DISCONNECTED)
Espressif Systems 693
Submit Document Feedback
Release v4.4

Table of Contents