Function esp_idf_sys::httpd_ws_send_data_async

source ยท
pub unsafe extern "C" fn httpd_ws_send_data_async(
    handle: httpd_handle_t,
    socket: c_int,
    frame: *mut httpd_ws_frame_t,
    callback: transfer_complete_cb,
    arg: *mut c_void,
) -> esp_err_t
Expand description

@brief Sends data to to specified websocket asynchronously

@param[in] handle Server instance data @param[in] socket Socket descriptor @param[in] frame Websocket frame @param[in] callback Callback invoked after sending data @param[in] arg User data passed to provided callback @return

  • ESP_OK : On successful
  • ESP_FAIL : When socket errors occurs
  • ESP_ERR_NO_MEM : Unable to allocate memory