[−][src]Function arduinors::cli::query
pub fn query(query: Query) -> Result<String, Error>
Extracts the item associated with a given query by calling the Arduino CLI - or more
specifically arduino-cli board list
.
Errors
CommandFailure
, if thearduino-cli
command fails or produces non-UTF-8 output.NoDevice
, if no Arduino is connected to the computer during the call.MultipleDevices
, if more than one Arduino is connected to the computer during the call.UnexpectedSyntax
, if the call to the Arduino CLI produced an output in a different format than expected.