robust-arduino-serial

Crates.iorobust-arduino-serial
lib.rsrobust-arduino-serial
version0.1.1
sourcesrc
created_at2018-04-20 13:15:57.462046
updated_at2018-04-20 13:39:47.006764
descriptionSimple and robust serial communication protocol.
homepagehttps://github.com/araffin/arduino-robust-serial
repositoryhttps://github.com/araffin/rust-arduino-serial
max_upload_size
id61578
size24,215
Antonin RAFFIN (araffin)

documentation

https://docs.rs/robust-arduino-serial

README

Robust Arduino Serial Protocol in Rust

Build Status Build status Crates.io

robust_arduino_serial is a simple and robust serial communication protocol. It was designed to make two arduinos communicate, but can also be useful when you want a computer (e.g. a Raspberry Pi) to communicate with an Arduino.

This repository is part of the Robust Arduino Serial project, main repository: https://github.com/araffin/arduino-robust-serial

Please read the Medium Article to have an overview of this protocol.

Implementations are available in various programming languages:

Tests

Compile and run the tests:

cargo test

Documentation

Generate the documentation:

cargo doc --open

Examples

Read write in a file

cargo run --example file_read_write test.txt

Serial communication with an Arduino: Arduino Source Code

cargo run --example arduino_serial /dev/ttyACM0

Listen and send orders to the Arduino using threads:

cargo run --example arduino_threads /dev/ttyACM0
Commit count: 36

cargo fmt