Function esp_idf_svc::sys::protocomm_close_session

source ยท
pub unsafe extern "C" fn protocomm_close_session(
    pc: *mut protocomm,
    session_id: u32,
) -> i32
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