#printers #response #3d #mqtt #camera #requests #bambu-lab

bambu

Rust crate that provides a high-level API for interacting with the BambuLab 3D printers

3 releases (breaking)

new 0.3.0 Jan 30, 2025
0.2.0 Jan 30, 2025
0.1.0 Jan 28, 2025

#888 in Network programming

36 downloads per month

Custom license

73KB
1.5K SLoC

Bambu library

Bambu is a library for Rust ecosystem that interacts with BambuLab 3D printers that are LAN mode enabled.

Supported features

  • Interact with MQTT server to send requests and receive responses.
  • Access the camera feed.
  • Access files stored on the SD card.

Getting Started

Prerequisites

  • Rust and Cargo installed.

Building the Project

To build the project, run:

cargo build

Running examples

One of the examples is a simple mjpeg stream server. Run it with:

export BAMBU_ACCESS_CODE=12345678
export BAMBU_IP=192.168.1.135
export BAMBU_SERIAL_NUMBER=123456789ABCDE
cargo run --example mjpeg_stream

Running the Project

To run the tests, use:

cargo test

License

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

Author

Dependencies

~13–24MB
~431K SLoC