Function esp_idf_hal::sys::protocomm_remove_endpoint

source ·
pub unsafe extern "C" fn protocomm_remove_endpoint(
    pc: *mut protocomm,
    ep_name: *const i8,
) -> i32
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