Home » Eclipse Projects » Kura » Emulated Simple Artemis MQTT Broker localhost Configuration (Local client constantly disconnected by built-in broker)
|Emulated Simple Artemis MQTT Broker localhost Configuration [message #1780752]
||Fri, 26 January 2018 15:33
| Mir Quintilianus
Registered: December 2017
I need some help with the configuration of the built-in Simple Artemis MQTT Broker in the Kura Lunix Emulator.
I am trying to control a Broadlink MP1 device. To this purpose I use the Eclipse python Paho client library along with a python client config reader and a python module for controlling Broadlink MP1 devices.
For the emulated broker configuration I followed the instruction from the Kura documentation using '0.0.0.0' for the MQTT address field and '1883' for MQTT port, no user name, and no password.
Now, using the python Broadlink client, I try to connect to the localhost broker on the Kura emulator but the clients gets constantly disconnected with the following logs.
[2018-01-14 16:35:44,012] DEBUG Connected to MP1 Broadlink device at ('192.168.1.151', 80)
[2018-01-14 16:35:44,012] DEBUG Protocol version is 4
[2018-01-14 16:37:31,194] DEBUG Connected to MP1 Broadlink device at ('192.168.1.151', 80)
[2018-01-14 16:37:31,195] DEBUG Protocol version is 4
[2018-01-14 16:37:31,196] DEBUG Sending CONNECT (u1, p1, wr0, wq0, wf1, c0, k60) client_id=broadlink_test_client
[2018-01-14 16:37:31,198] DEBUG Calling from main right after mqttc.connect()
[2018-01-14 16:37:31,200] DEBUG OOOOPS! Broadlink disconnects
[2018-01-14 16:37:31,201] DEBUG CONNACK received by on_disconnect with code: 1
[2018-01-14 16:37:42,211] DEBUG Sending CONNECT (u1, p1, wr0, wq0, wf1, c0, k60) client_id=broadlink_test_client
[2018-01-14 16:37:42,213] DEBUG OOOOPS! Broadlink disconnects
[2018-01-14 16:37:42,213] DEBUG CONNACK received by on_disconnect with code: 1
Reportedly, the disconnection code 1 should stand for Connection refused - incorrect protocol version. However, I doubt this is the real issue because mqtt-spy does connect to the same broker instance with the same protocol version, etc. settings.
Since I tested the same setup with the public MQTT broker at iot.eclipse.org, and it worked OK, I begin to think there could be only two options why the built-in simple broker service in the emulator fails to do so.
One, somehow the built-in service is unreachable for the Broadlink client, which is outside the Kura emualtor. (But then how does mqtt-spy manage to connect to the same broker instance anyway and even track specific queues???)
Two, and by far the more likely option, I am doing something wrong with the configuration of the built-in service, in which case I would very much appreciate any hint/guess/hunch that you might have to spare?
Thank you in advance!
Current Time: Tue Sep 18 21:32:33 GMT 2018
Powered by FUDForum
. Page generated in 0.01706 seconds