Function esp_idf_svc::hal::sys::esp_transport_write

source ยท
pub unsafe extern "C" fn esp_transport_write(
    t: *mut esp_transport_item_t,
    buffer: *const i8,
    len: i32,
    timeout_ms: i32,
) -> i32
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