Espressif ESP32-S2 Programming Manual page 849

Table of Contents

Advertisement

Chapter 2. API Reference
Event loop profiling
A configuration option
CONFIG_ESP_EVENT_LOOP_PROFILING
lection for all event loops created. The function
to a file stream. More details on the information included in the dump can be found in the
API Reference.
Application Example
Examples on using the esp_event library can be found in system/esp_event. The examples cover event declaration,
loop creation, handler registration and unregistration and event posting.
Other examples which also adopt esp_event library:
NMEA Parser
, which will decode the statements received from GPS.
API Reference
Header File
components/esp_event/include/esp_event.h
Functions
esp_err_t
esp_event_loop_create(const
Create a new event loop.
Return
• ESP_OK: Success
• ESP_ERR_INVALID_ARG: event_loop_args or event_loop was NULL
• ESP_ERR_NO_MEM: Cannot allocate memory for event loops list
• ESP_FAIL: Failed to create task loop
• Others: Fail
Parameters
• [in] event_loop_args: configuration structure for the event loop to create
• [out] event_loop: handle to the created event loop
esp_err_t esp_event_loop_delete(esp_event_loop_handle_t
Delete an existing event loop.
Return
• ESP_OK: Success
• Others: Fail
Parameters
• [in] event_loop: event loop to delete, must not be NULL
esp_err_t
esp_event_loop_create_default(void)
Create default event loop.
Return
• ESP_OK: Success
• ESP_ERR_NO_MEM: Cannot allocate memory for event loops list
• ESP_FAIL: Failed to create task loop
• Others: Fail
esp_err_t
esp_event_loop_delete_default(void)
Delete the default event loop.
Return
• ESP_OK: Success
• Others: Fail
Espressif Systems
esp_event_dump()
esp_event_loop_args_t
esp_event_loop_handle_t
838
Submit Document Feedback
can be enabled in order to activate statistics col-
can be used to output the collected statistics
esp_event_dump()
*event_loop_args,
*event_loop)
event_loop)
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?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF