Function esp_idf_svc::sys::httpd_ws_send_data_async

source ยท
pub unsafe extern "C" fn httpd_ws_send_data_async(
    handle: *mut c_void,
    socket: i32,
    frame: *mut httpd_ws_frame,
    callback: Option<unsafe extern "C" fn(_: i32, _: i32, _: *mut c_void)>,
    arg: *mut c_void,
) -> i32
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