softwarecrash / Solar2MQTT

ESP8266 based WiFi and MQTT interface for MPPT Inverters that use watchpower
Other
108 stars 25 forks source link

URL handling hivemq #30

Closed MWagnerOE5AOO closed 1 year ago

MWagnerOE5AOO commented 1 year ago

I had create a free account an hivemq for testing. I get from hivemq a url like "ee9b57c42a8f48abad2774fe5e90ba3b.s2.eu.hivemq.cloud" Inserting this URL in SolarMQTT causes in a URL cutoff. After click Save setting the URL in the field is "ee9b57c42a8f48abad2774fe5e90ba3". It seems that no more than 32 chars are possible.

all-solutions commented 1 year ago

This has to do with the memory architecture. To fix this, the complete memory allocation must be changed. It was never intended to manage such long URL's. Most users have a local broker. Will be adjusted with the next version jump if necessary. Until then you can solve it with a workaround: Find a URL-shortener service on the web. With that it should work.