Ewon TechForum
Providing technical solutions to technical requests


MQTT Client problem after firmware update to 14.0s01
vmi Offline
Junior Member
#1
Hi,

I have a Java code that uses the MQTT Java client to send the tag values to a Mosquitto server.

Two days a go I updated the firmware from 13 to 14 on the eWon Flexy 203, so I can utilize the newly added MqttClient.getStatus() function but my code stop immediately functioning properly. 

After digging a bit into what is the cause, I discovered that the problem lies in the MqttClient.connect function. That is as soon as the Mqtt client connect the eWon Flexy becomes non responsive.

You can see below the log from my mosquitto server:
1576793767: New connection from xx.xx.xx.xx on port 8883.
1576793768: New client connected from xx.xx.xx.xx as Flexy (c1, k60, u'Flexy').
1576793768: Sending CONNACK to Flexy (0, 0)
1576793768: Received PUBLISH from Flexy (d0, q1, r1, m1, 's/someTopic', ... (1228 bytes))
1576793768: Sending PUBACK to Flexy (Mid: 1)
1576793768: Socket error on client Flexy, disconnecting.


As you can see, the mqtt client does manage to connect properly and send the data only once (the data is recieved on the server). Immediately after that the client is disconnected due to a socket error. At the same time my e-catcher shows the eWon Flexy going offline.

I am not sure what was modified in the updated Java ETK library 1.4.4 and the new firmware but the same code was working flawlessly on Java ETK 1.4.2 and firmware 13.0.

Could you please advice me what to do. I am kind of lost here :/ Thank you in advance
Reply

simon Offline
eWON Support
#2
Hi,

I think you are facing the same problem as described here : https://techforum.ewon.biz/thread-586-po...ml#pid3694

Simin
Reply

vmi Offline
Junior Member
#3
(20-12-2019, 05:54 PM)simon Wrote: Hi,

I think you are facing the same problem as described here : https://techforum.ewon.biz/thread-586-po...ml#pid3694

Simon
Thanks a lot Simon. I will try the workaround and keep you posted.
Reply

vmi Offline
Junior Member
#4
(20-12-2019, 06:04 PM)vmi Wrote:
(20-12-2019, 05:54 PM)simon Wrote: Hi,

I think you are facing the same problem as described here : https://techforum.ewon.biz/thread-586-po...ml#pid3694

Simon
Thanks a lot Simon. I will try the workaround and keep you posted.

It worked. That was it. Thank you once more Simon. You saved the day
Reply

simon Offline
eWON Support
#5
You are welcome. :-)

Wish you an happy new year!
Reply



Possibly Related Threads…
Star MQTT Publish Problem Started by ntnunk
2 Replies - 64 Views
27-03-2020, 03:20 PM
Last Post: simon
  MQTT secure connection Started by Srdjan
3 Replies - 37 Views
26-03-2020, 03:20 PM
Last Post: Srdjan
  Java 1.4 update Started by tomT
12 Replies - 1.639 Views
24-03-2020, 09:08 PM
Last Post: hernfiry
31-01-2020, 05:27 PM
Last Post: simon
10-12-2019, 05:50 AM
Last Post: Kanduri Shouri
29-10-2019, 05:08 PM
Last Post: simon
  MQTT client stability ? Started by lgn@ltr@n
6 Replies - 1.710 Views
17-09-2019, 03:00 PM
Last Post: simon
  Mqtt Error Started by Azzamjj
1 Replies - 410 Views
05-09-2019, 04:31 PM
Last Post: simon
19-06-2019, 10:51 PM
Last Post: simon
  MQTT issue Started by AudreyCim
3 Replies - 1.167 Views
21-03-2019, 11:19 AM
Last Post: simon



Users browsing this thread:
1 Guest(s)



Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy