Git Product home page Git Product logo

Comments (6)

BriscoeTech avatar BriscoeTech commented on August 18, 2024

I decided to poke through the code, sure enough, password is 50 characters

image

from homebuttons.

Zixim avatar Zixim commented on August 18, 2024

mosquitto max password length is 65535 bytes.
UTF-8 characterset can use up to 4 bytes per character... int(65535/4)=16383

from homebuttons.

nplan avatar nplan commented on August 18, 2024

@BriscoeTech I'll raise this limit. In the meantime you could add a new user for MQTT with a shorter password.

@Zixim I can't store this much data 🙂. 50 is already very long for a password... What would be a reasonable limit? 128 characters?

from homebuttons.

Zixim avatar Zixim commented on August 18, 2024

@nplan i feel 50 is sufficient... 😛 but I also understand OP's pain of having to redo all the passwords.
64 or 128 are pretty numbers i guess.

@BriscoeTech
OTOH... Home Assistant MQTT (mosquitto) allows for multiple user/password pairs and it's really straightforward. Could also add a user/pass for the Homebuttons.
https://community.home-assistant.io/t/mqtt-with-multiple-users/432162

from homebuttons.

nplan avatar nplan commented on August 18, 2024

Increased to 64 character in v2.2.1.

from homebuttons.

BriscoeTech avatar BriscoeTech commented on August 18, 2024

Thanks everyone! I will take a look at setting up the multiple password pairs.

I agree 64 is probably plenty big enough, I was amazed Mosquito generated that large a password to begin with, and did not think about the implications at the time. Hopefully this will help prevent another user from getting the same surprise.

from homebuttons.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.