| Crates.io | bambulab-mqtt |
| lib.rs | bambulab-mqtt |
| version | 0.1.1 |
| created_at | 2025-05-02 09:48:27.826696+00 |
| updated_at | 2025-05-02 09:48:27.826696+00 |
| description | A simple MQTT client for Bambu Lab printers |
| homepage | https://github.com/KobayashiRui/bambulab-mqtt |
| repository | https://github.com/KobayashiRui/bambulab-mqtt |
| max_upload_size | |
| id | 1657500 |
| size | 55,498 |
This project provides a Rust crate for sending and receiving data using the MQTT protocol with BambuLab devices.
To use this crate, add it to your Cargo.toml:
[dependencies]
bambulab-mqtt = "0.1.0"
Here are some examples to help you get started:
You can also publish data to an MQTT topic:
use bambulab_mqtt::mqtt_client;
fn main() {
let client = mqtt_client::new("<host ip>", "<password>", "<serial>");
let get_version = RequestCommand::Info(Info::GetVersion(GetVersion::new()));
client.request(&get_version)
}
For more examples, check the examples/ directory.
This project is licensed under the Apache License 2.0. See the LICENSE file for details.