Function esp_idf_sys::protocomm_remove_endpoint
source · pub unsafe extern "C" fn protocomm_remove_endpoint(
pc: *mut protocomm_t,
ep_name: *const c_char,
) -> esp_err_t
Expand description
@brief Remove endpoint request handler for a protocomm instance
This API will remove a registered endpoint handler identified by an endpoint name.
@note
- This function internally calls the registered
remove_endpoint()
function which is a member of the protocomm_t instance structure.
@param[in] pc Pointer to the protocomm instance @param[in] ep_name Endpoint identifier(name) string
@return
- ESP_OK : Success
- ESP_ERR_NOT_FOUND : Endpoint with specified name doesn’t exist
- ESP_ERR_INVALID_ARG : Null instance/name arguments