esp_sleep_register_event_callback() is only used within ESP-IDF.
 
Symbols
loading...
Files
loading (1/5)...
SummarySyntaxArgumentsReferences

Return value

- ESP_OK on success - ESP_ERR_INVALID_ARG if the input parameter event_cb_conf is NULL or event_id is out of range - ESP_ERR_NO_MEM if the remaining memory is insufficient to support malloc - ESP_FAIL if register the same function repeatedly

Notes

Some of these callback functions are called from IDLE task context hence they cannot call any blocking functions Passing NULL value will not deregister the callbacks, it will silently ignore and return ESP_OK

References