Home » Eclipse Projects » Kura » Kura built-in Simple Artemis MQTT Broker Service logs(How to get the logs from the built-in Simple Artemis MQTT Broker Service logs)
|Kura built-in Simple Artemis MQTT Broker Service logs [message #1779923]
||Mon, 15 January 2018 19:28
| Mir Quintilianus
Registered: December 2017
I am looking for a way to get the logs from the Kura built-in Simple Artemis MQTT Broker Service, but I am using the emulator version from the dev kit, and I couldn't find anything except for a runtime jar file associated with this service. Is there some workaround or hidden console setting that I can use?
Thank you in advance
PS: It's not a bug with Kura itself, but just in the unlikely case someone has come across sth similar, here's some context:
I am using the python Paho client library along with a python client config reader and a python module for controlling Broadlink MP1 device.
These two, they seem to work OK since the Broadlink device is discovered.
However, when the client finally tries to connect to the MQTT broker, it keeps getting disconnected, reportedly because of an incorrect protocol version.
The MQTT broker is an ActiveMQ Artemis broker, which is part of an Eclipse Kura emulator set up on a Debian 9 machine.
I have tested the broker with the mqtt-spy and it's up and running.
I have been trying quite a few things over the weekend, but still no result whatsoever.
Below are the logs with as much info as I managed to get from the logger.
Already tried changing the protocol version between 3.1 and 3.1.1, and also tried setting back and forth the clean_session flag.
Any idea why I still keep getting this code 1: Connection refused - incorrect protocol version?
anything is welcome!
[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
Current Time: Fri Aug 07 18:21:39 GMT 2020
Powered by FUDForum
. Page generated in 0.02118 seconds