DongLoRa Rust Client
Rust client library for talking to a DongLoRa device — either directly over USB or through the mux daemon.
What's in Here
src/protocol.rs— wire protocol types (RadioConfig,Command,Response,ErrorCode)src/codec.rs— COBS framing, frame accumulatorsrc/discovery.rs— USB VID:PID device discoverysrc/transport.rs— serial and mux socket transportssrc/client.rs— high-levelClient<T>with send/recvsrc/connect.rs— auto-detection (mux socket, TCP, direct USB)
Usage
use *;
let mut client = connect_default?;
client.ping?;
client.set_config?;
client.start_rx?;
loop
Dependencies
ucobs— COBS framing (same implementation as the firmware)serialport— USB serial communicationanyhow— error handlingtracing— logging