Function esp_idf_svc::hal::sys::esp_mqtt_client_register_event
source ยท pub unsafe extern "C" fn esp_mqtt_client_register_event(
client: *mut esp_mqtt_client,
event: i32,
event_handler: Option<unsafe extern "C" fn(_: *mut c_void, _: *const i8, _: i32, _: *mut c_void)>,
event_handler_arg: *mut c_void,
) -> i32
Expand description
@brief Registers MQTT event
@param client MQTT client handle @param event event type @param event_handler handler callback @param event_handler_arg handlers context
@return ESP_ERR_NO_MEM if failed to allocate ESP_ERR_INVALID_ARG on wrong initialization ESP_OK on success