Cannot connect to CloudMQTT
Hello, I try to connect to CloudMQTT (so not a local install). I filled in the server/port/client name/user/pass but I get a respons after enabling the MQTT module that the TCP interface is connected. This message is seen on both DomotGa client and server. On the server I then see a message[MQTT] Not connected to MQTT broker, cannot publish! I tried looking at tcpdump and there is in fact a active TCP session... Also subscribing does not seem to work.
I can connect to CloudMQTT via the mosquito_sub client from the command prompt of the same machine with no problem. Any idea what could be wrong? Is it the client server setup?
#5 Updated by Alexie over 4 years ago
- Status changed from New to In Progress
- Assignee set to Alexie
Ok, see the problem i think :-)
According to the specs the request should be as follows (variable data):
<len 2-bytes><client id><len 2-bytes><username><len 2-bytes><password>
Only DomotiGa seems to send:
<len 2-bytes><client id><username><password>
This is most likely why it works, if you don't enable username/password ... I will try to fix it tonight.
#10 Updated by janno over 4 years ago
Thank you very much guys, this part works great. The only thing missing is OwnTracks support for "Waypoints". Waypoints are positions on the map with a radius. they act like regions. I use for instance two regions: One with a radius of 25km around home. If I enter that region a waypoint update is pushed and I want my house to prepare itself for my arrival (heating on). Then another waypoint with a radius of 100 meter around my house which will tell Domotiga I'm (coming) home. Lights on etc. At this moment location updates of OwnTracks are understood by Domotiga. Waypoints not yet. Waypoints are pushed one level deeper than the location data: location/janno/waypoints:
To conclude: this issue can be closed. The other thing is a new feature request so if you are motivated...
#11 Updated by rdnzl over 4 years ago
Please open a new ticket for the request.
Funny enough DomotiGa also knows waypoints, they are called makers (see edit menu), but since the latitude plugin was removed they sit there unused.
How do you like to see waypoints implemented? A seperate waypoint device?