Function esp_idf_sys::esp_transport_write
source ยท pub unsafe extern "C" fn esp_transport_write(
t: esp_transport_handle_t,
buffer: *const c_char,
len: c_int,
timeout_ms: c_int,
) -> c_int
Expand description
@brief Transport write function
@param t The transport handle @param buffer The buffer @param[in] len The length @param[in] timeout_ms The timeout milliseconds (-1 indicates wait forever)
@return
- Number of bytes was written
- (-1) if there are any errors, should check errno