use embedded_nano_mesh::{ExactAddressType, Node, NodeConfig}; use platform_millis_linux::{ms, LinuxMillis}; use platform_serial_linux::{ configure_serial, CharSize, FlowControl, LinuxSerial, Parity, PortSettings, StopBits, }; fn main() -> ! { configure_serial( "/dev/ttyUSB0".to_string(), PortSettings { baud_rate: serial_core::BaudRate::Baud9600, char_size: CharSize::Bits8, parity: Parity::ParityNone, stop_bits: StopBits::Stop1, flow_control: FlowControl::FlowNone, }, ); // This node might be used to extend mesh network range. let mut mesh_node = Node::new(NodeConfig { device_address: ExactAddressType::new(1).unwrap(), listen_period: 100 as ms, }); loop { let _ = mesh_node.update::(); } }