Skip to content

MQTT login including username and password  #16

Open

Description

@freaked1234

It would be great if it was possible to login to the mqtt server with username and password. I plan on implementing the printer in HomeAssistant for basic monitoring and control. For now I switched to MQTT with anonymous login but it would be best if it was possible to have credentials because default MQTT broker for HA does not allow anonymous login.

Since I dont know enough about python I told the latest ChatGPT Model to implement login with credentials but it does not work. I get this:
Sent 1 packets. 15:52:05,68 INFO: Sent MQTT connection command to printer at 192.168.1.102:3000 with username and password.
but in reality the server never received a request from this IP. Trying to login without credentials there is at least a log entry for a failed attempt.

I'll include the modified files for you in case that helps.
Thank you very much for sharing this project!!

cassini.txt
saturn_printer.txt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions