Function esp_idf_sys::protocomm_open_session
source ยท pub unsafe extern "C" fn protocomm_open_session(
pc: *mut protocomm_t,
session_id: u32,
) -> esp_err_t
Expand description
@brief Allocates internal resources for new 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_NO_MEM : Error allocating internal resource
- ESP_ERR_INVALID_ARG : Null instance/name arguments