OpenSprinkler Forums OpenSprinkler Unified Firmware MQTT server address lenght

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #83616

    nikoMx
    Spectator

    hi,
    the mqtt server address is too short in some cases ( for ex. i’m using hivemq free mqtt server and the address is something like 3xx7535xx0115xxbfb0c5xxxa2xxxdcxx1.s2.eu.hivemq.cloud and is one char too much! )

    i’m not sure if is just the form text area too short or also the variable that will save the address. where is in the code the text area?
    thank you

    #83617

    Ray
    Keymaster

    The app/UI limits the url to 50 characters, yours is more than 50 characters. There has to be a limit because the controller does not have infinite space to story the MQTT configurations (it only has about 300 bytes to store the entire MQTT configuration). Last time we had to increase the limit, it was because someone’s MQTT account has a password that’s 100 characters long. Then it was because someone has a user name more than 50 characters. We can certainly increase the limit a bit, but I won’t be surprised next time someone would have a MQTT server url that’s more than 200 characters long…

    In the meantime you can always send in your MQTT configuration via HTTP API, to bypass the limit set by the UI. The code is in options.js, search “Broker/Server”, then maxlength in the id='server' field.

    #83618

    nikoMx
    Spectator

    i understand your frustration about always changing sizes. But with servers/usernames/pass it can be a problem. Maybe i can use a tinyurl service, i will first try it. Thank you for the info!

    #83619

    Ray
    Keymaster

    I don’t quite get why the server URL has to be that long. Does it change dynamically? If not, can’t you just use the IP address?

    #83620

    Ray
    Keymaster

    Additionally, you should check if hivemq requires TLS. I assume it does. If so, you can’t use OpenSprinkler with it because the OpenSprinkler firmware does not currently support secure MQTT.

    #83637

    nikoMx
    Spectator

    no tls, i use it on arduino projects. no, i can’t use IP because this is a free service that offer mqtt servers and i think they use server address to point to the right mqtt service

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware MQTT server address lenght