EasyManuals Logo

Espressif ESP32-S2 User Manual

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
Page #860 background imageLoading...
Page #860 background image
Chapter 2. API Reference
typedef ip_event_got_ip6_t system_event_got_ip6_t
Argument structure of event
typedef esp_err_t (*system_event_handler_t)(esp_event_base_t event_base, int32_t event_id,
void *event_data, size_t event_data_size, Tick-
Type_t ticks_to_wait)
Event handler function type
typedef esp_err_t (*system_event_cb_t)(void *ctx, system_event_t *event)
Application specified event callback function.
Note This API is part of the legacy event system. New code should use event library API in esp_event.h
Return
ESP_OK: succeed
others: fail
Parameters
ctx: reserved for user
event: event type defined in this file
Enumerations
enum system_event_id_t
System event types enumeration
Values:
SYSTEM_EVENT_WIFI_READY = 0
ESP32 WiFi ready
SYSTEM_EVENT_SCAN_DONE
ESP32 finish scanning AP
SYSTEM_EVENT_STA_START
ESP32 station start
SYSTEM_EVENT_STA_STOP
ESP32 station stop
SYSTEM_EVENT_STA_CONNECTED
ESP32 station connected to AP
SYSTEM_EVENT_STA_DISCONNECTED
ESP32 station disconnected from AP
SYSTEM_EVENT_STA_AUTHMODE_CHANGE
the auth mode of AP connected by ESP32 station changed
SYSTEM_EVENT_STA_GOT_IP
ESP32 station got IP from connected AP
SYSTEM_EVENT_STA_LOST_IP
ESP32 station lost IP and the IP is reset to 0
SYSTEM_EVENT_STA_BSS_RSSI_LOW
ESP32 station connected BSS rssi goes below threshold
SYSTEM_EVENT_STA_WPS_ER_SUCCESS
ESP32 station wps succeeds in enrollee mode
SYSTEM_EVENT_STA_WPS_ER_FAILED
ESP32 station wps fails in enrollee mode
SYSTEM_EVENT_STA_WPS_ER_TIMEOUT
ESP32 station wps timeout in enrollee mode
SYSTEM_EVENT_STA_WPS_ER_PIN
ESP32 station wps pin code in enrollee mode
Espressif Systems 849
Submit Document Feedback
Release v4.4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

Espressif ESP32-S2 Specifications

General IconGeneral
BrandEspressif
ModelESP32-S2
CategorySingle board computers
LanguageEnglish