bambulab-mqtt

Crates.iobambulab-mqtt
lib.rsbambulab-mqtt
version0.1.1
created_at2025-05-02 09:48:27.826696+00
updated_at2025-05-02 09:48:27.826696+00
descriptionA simple MQTT client for Bambu Lab printers
homepagehttps://github.com/KobayashiRui/bambulab-mqtt
repositoryhttps://github.com/KobayashiRui/bambulab-mqtt
max_upload_size
id1657500
size55,498
KobayashiRui (KobayashiRui)

documentation

README

🎍 BambuLab MQTT Crate

This project provides a Rust crate for sending and receiving data using the MQTT protocol with BambuLab devices.

✨ Features

  • 🚀 Easy integration with BambuLab devices.
  • 📡 Support for MQTT protocol.
  • ⚡ Lightweight and efficient.

🛠️ Getting Started

To use this crate, add it to your Cargo.toml:

[dependencies]
bambulab-mqtt = "0.1.0"

📚 Examples

Here are some examples to help you get started:

📦 Publish Data to MQTT

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.

📜 License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

Commit count: 7

cargo fmt