[][src]Function arduinors::cli::upload

pub fn upload(sketch: &Path) -> Result<(), Error>

Uploads a compiled sketch onto the currently connected Arduino. The given path should point to the sketch directory, not file.

Errors

This function calls arduino::cli::query, and will pass along any errors produced by it.

  • CommandFailure, if the arduino-cli command fails or an error occurs during uploading.
  • InvalidSketchPath, if the sketch does not have the format required for Arduino sketches.