#mqtt #printing #bambulab-mqtt #bambulab

bambulab-mqtt

A simple MQTT client for Bambu Lab printers

1 unstable release

Uses new Rust 2024

new 0.1.1 May 2, 2025

#41 in #printing

Download history 98/week @ 2025-04-28

98 downloads per month

Apache-2.0

17KB
214 lines

🎍 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.

Dependencies

~5–19MB
~235K SLoC