Function robust_arduino_serial::write_order
[−]
[src]
pub fn write_order<T: Write>(file: &mut T, order: Order) -> Result<usize>
Write an order to a file/serial port. It returns the number of bytes written
Example
use robust_arduino_serial::write_order; use robust_arduino_serial::Order; let mut buffer = Vec::new(); // write the order (one byte) to the buffer write_order(&mut buffer, Order::HELLO).unwrap();