Meshtastic.rs
Overview
Meshtastic.rs is a crate that allows you to interact with Meshtastic devices in Rust. This crate is designed to be used on a desktop environment, and currently supports connecting to radios via USB serial and TCP.
This crate is designed to be used within the tokio asynchronous runtime.
Installation
You can add this crate to your project using the following command:
cargo add meshtastic
Usage
This crate provides basic TCP and serial connection examples within the /examples directory. You can run
these examples using the following commands:
TCP Example
This example requires a Meshtastic with an exposed IP port, or a simulated radio via the Meshtastic Docker instance (see here).
/// This example connects to a TCP port on the radio, and prints out all received packets.
/// This can be used with a simulated radio via the Meshtastic Docker firmware image.
/// https://meshtastic.org/docs/software/linux-native#usage-with-docker
use ;
use StreamApi;
use utils;
async
Serial Example
This example requires a powered and flashed Meshtastic radio connected to the host machine via a USB serial port.
/// This example connects to a radio via serial, and prints out all received packets.
/// This example requires a powered and flashed Meshtastic radio.
/// https://meshtastic.org/docs/supported-hardware
use ;
use StreamApi;
use utils;
async
Stats
Contributing
Contributions are welcome! If you find a bug or want to propose a new feature, please open an issue or submit a pull request.
License
This project is licensed under the GPL-3.0 License.