Function esp_idf_sys::protocomm_close_session
source ยท pub unsafe extern "C" fn protocomm_close_session(
pc: *mut protocomm_t,
session_id: u32,
) -> esp_err_t
Expand description
@brief Frees internal resources used by a transport session
@note
- An endpoint must be bound to a valid protocomm instance,
created using
protocomm_new()
.
@param[in] pc Pointer to the protocomm instance @param[in] session_id Unique ID for a communication session
@return
- ESP_OK : Request handled successfully
- ESP_ERR_INVALID_ARG : Null instance/name arguments