This Rust-based application reads sensor data from an I2C bus and publishes the filtered results to an MQTT broker.
- I2C sensor data collection (MPU6500 IMU for now only).
- Real-time publishing to an MQTT broker.
- Terminal-based data display.
- Install Rust and Cargo.
- Clone this repository and navigate to its folder.
- Adjust
config.yaml
for your device and broker. - Compile and run:
cargo build --release cargo run
- config.yaml includes sensor bus paths and MQTT settings (
host
,port
,base_topic
).
Unit tests are located alongside the source files. Run:
cargo test
Distributed under the MIT License. See LICENSE
for more details.