Function esp_idf_sys::esp_http_client_set_post_field

source ยท
pub unsafe extern "C" fn esp_http_client_set_post_field(
    client: esp_http_client_handle_t,
    data: *const c_char,
    len: c_int,
) -> esp_err_t
Expand description

@brief Set post data, this function must be called before esp_http_client_perform. Note: The data parameter passed to this function is a pointer and this function will not copy the data

@param[in] client The esp_http_client handle @param[in] data post data pointer @param[in] len post length

@return

  • ESP_OK
  • ESP_FAIL