Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save syuchan1005/9aee026ff77cf9745950de188b26346c to your computer and use it in GitHub Desktop.
Save syuchan1005/9aee026ff77cf9745950de188b26346c to your computer and use it in GitHub Desktop.
How to connect Bambu Lab printer's MQTT server

My env

  • Bambu Lab P1S
    • Bound to the cloud

If not bound to the cloud, a Local MQTT server is a good choice.

Steps

  1. Login MakerWorld
  2. Open the dev-tools and move to Application > Cookies > https://makerworld.com
  3. Memo your token string as ACCESS_TOKEN
  4. Access /api/v1/design-user-service/my/preference and memo uid as USER_ID
  5. Access /api/v1/iot-service/api/user/bind and memo your dev_id as DEVICE_ID
  6. Connect to the MQTT server with the following information. URL: mqtt://us.mqtt.bambulab.com:8883 TLS: YES Authentication: required Username: u_{USER_ID} Password: {ACCESS_TOKEN}

Warning: The subscribe topics must be fully specified

  • device/{DEVICE_ID}/report
  • device/{DEVICE_ID}/request

Ref

https://github.com/Doridian/OpenBambuAPI/blob/main/mqtt.md https://github.com/Doridian/OpenBambuAPI/blob/main/cloud-http.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment