I'm trying to make this code work
https://github.com/karloygard/xcomfortd
When I run xcomfortd -v after I make. Program will connect successfully to mosquitto broker.
But if I tried to run an On command to one of my switch actuators. Mosquitto will disconnect xcomfortd and I get.
Code: Select all
"MQTT Disconnected, The connection was lost"
Off
Code: Select all
"mosquitto_pub -h localhost -m 'false' -t 'xcomfort/1/set/switch'"
Code: Select all
"mosquitto_pub -h localhost -m 'true' -t 'xcomfort/1/set/switch'"
Code: Select all
1561095917: mosquitto version 1.6.2 starting
1561095917: Config loaded from /etc/mosquitto/mosquitto.conf.
1561095917: Opening ipv4 listen socket on port 1883.
1561095917: Opening ipv6 listen socket on port 1883.
1561095933: New connection from ::1 on port 1883.
1561095933: New client connected from ::1 as xcomfort (p2, c0, k30).
1561095933: No will message specified.
1561095933: Sending CONNACK to xcomfort (0, 0)
1561095933: Received SUBSCRIBE from xcomfort
1561095933: xcomfort/+/set/+ (QoS 0)
1561095933: xcomfort 0 xcomfort/+/set/+
1561095933: Sending SUBACK to xcomfort
1561095943: New connection from ::1 on port 1883.
1561095943: New client connected from ::1 as mosq/4vJKjkgge3tz1JJigB (p2, c1, k60).
1561095943: No will message specified.
1561095943: Sending CONNACK to mosq/4vJKjkgge3tz1JJigB (0, 0)
1561095943: Received PUBLISH from mosq/4vJKjkgge3tz1JJigB (d0, q0, r0, m0, 'xcomfort/1/set/switch', ... (5 bytes))
1561095943: Sending PUBLISH to xcomfort (d0, q0, r0, m0, 'xcomfort/1/set/switch', ... (5 bytes))
1561095943: Received DISCONNECT from mosq/4vJKjkgge3tz1JJigB
1561095943: Client mosq/4vJKjkgge3tz1JJigB disconnected
1561095970: Client xcomfort has exceeded timeout, disconnecting