Function esp_idf_svc::sys::esp_event_handler_instance_unregister
source · pub unsafe extern "C" fn esp_event_handler_instance_unregister(
event_base: *const i8,
event_id: i32,
instance: *mut c_void
) -> i32
Expand description
@brief Unregister a handler from the system event loop.
This function does the same as esp_event_handler_instance_unregister_with, except that it unregisters the handler instance from the default event loop.
@param[in] event_base the base of the event with which to unregister the handler @param[in] event_id the ID of the event with which to unregister the handler @param[in] instance the instance object of the registration to be unregistered
@return
- ESP_OK: Success
- ESP_ERR_INVALID_ARG: Invalid combination of event base and event ID
- Others: Fail