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

bambu

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

4 releases (2 breaking)

new 0.3.1 Feb 23, 2025
0.3.0 Jan 30, 2025
0.2.0 Jan 30, 2025
0.1.0 Jan 28, 2025

#614 in Network programming

Download history 302/week @ 2025-01-26 90/week @ 2025-02-02 2/week @ 2025-02-09

394 downloads per month

Custom license

78KB
2K 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
~427K SLoC