|
esp_iot_framework
v0.2.1
© 2026 AmakeSasha, distributed under a license Apache-2.0
|
Anything that does not belong to a specific section or is not part of a group large enough for a separate module. More...
Functions | |
| size_t | eif_core_log_pop_chunk (char *dest_buf, size_t max_size) |
| Thread-safe extraction of diagnostic logs from the core ring buffer. More... | |
| size_t eif_core_log_pop_chunk | ( | char * | dest_buf, |
| size_t | max_size | ||
| ) |
Kconfig option CONFIG_EIF_CORE_LOG_ENABLE_REMOTE_DEBUG is enabled.This function retrieves accumulated logs from the internal ring buffer, copies them into the provided destination buffer, and releases the consumed memory within the ring.
| dest_buf | Pointer to the destination buffer where logs will be copied. |
| max_size | Maximum capacity of the destination buffer in bytes. |
size_t The number of bytes actually copied into dest_buf. Returns 0 if the log buffer is empty.