Function esp_idf_svc::hal::sys::esp_transport_ws_set_subprotocol

source ยท
pub unsafe extern "C" fn esp_transport_ws_set_subprotocol(
    t: *mut esp_transport_item_t,
    sub_protocol: *const i8,
) -> i32
Expand description

@brief Set websocket sub protocol header

@param t websocket transport handle @param sub_protocol Sub protocol string

@return - ESP_OK on success - One of the error codes