Espressif ESP32-S2 Programming Manual page 704

Table of Contents

Advertisement

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
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 of the station
wifi_prov_sta_fail_reason_t
Reason for disconnection (valid only when wifi_state is WIFI_STATION_DISCONNECTED)
Espressif Systems
wifi_state
fail_reason
Submit Document Feedback
inlen, uint8_t **outbuf, ssize_t *outlen, void
*priv_data)
693
Release v4.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2 and is the answer not in the manual?

Table of Contents

Save PDF