Closed fake-name closed 2 years ago
Ok, this seems to be a dupe of https://github.com/HASwitchPlate/openHASP/issues/150, but I literally just installed from https://github.com/HASwitchPlate/openHASP/releases/tag/v0.6.2 (which was released 6 months after that issue).
Either the problem occurs in multiple places, or something didn't get merged?
Setting the domain via serial (mqtthost <xxxx>
) also results in the truncation.
Pulling the source from the 0.6.2 release page:
char mqttServer[16] = MQTT_HOST;
char mqttUser[23] = MQTT_USER;
char mqttPassword[32] = MQTT_PASSW;
// char mqttNodeName[16] = MQTT_NODENAME;
char mqttGroupName[16] = MQTT_GROUPNAME;
uint16_t mqttPort = MQTT_PORT;
PubSubClient mqttClient(mqttNetworkClient);
So somehow #150 didn't make it into 0.6.2.
What happened?
Ok, grabbing a current release from CI (https://github.com/HASwitchPlate/openHASP/actions/runs/1834150765) fixes the issue.
Maybe cut a new release?
This will be fixed (again) in the next release.
Perform all steps below and tick them with [x]
Describe the bug
I have my mqtt server on a sub-domain of a domain I own.
When I set it, the trailing TLD get's truncated, which breaks it.
To Reproduce
mqtter.fake-url.com
mqtter.fake-url.
(yes, with trailing dot).Expected behavior
I'd expect setting the mqtt server to set the mqtt server.
Playing around, it seems like the MQTT server address is being truncated to 16 characters. If this field is supposed to just be an IP address that's fine, but the documentation says
Set the IP or *hostname* of your MQTT Broker
.Logs: