Switch to desktop version  
MQTT connect failed operation - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: MQTT connect failed operation (/thread-650.html)



MQTT connect failed operation - fvantour - 22-06-2018

Hi,

When trying to connect to a local installed MQTT broker, my script is working fine. However when trying to connect to a cloud MQTT broker via WiFi WAN, i get either an Operation failed (28) 46:MQTT "connect" or an Operation failed (28) 40:MQTT "connect". Does somebody know these errorcodes 46 or 40? The WifFi status is reporting Internet connection so that should not be the issue. Am I missing something here? Any help is appreciated.

Best reagrds,
Frank van Tour


RE: MQTT connect failed operation - simon - 22-06-2018

Are you sure all ports (1883 or 8883) are opened on the Wifi ?
What cloud broker do you try to connect ? You can try with https://ewonsupport.biz/mqtt


RE: MQTT connect failed operation - fvantour - 25-06-2018

I'm using test.mosquitto.org as MQTT broker and i directly connect to the internet via a hotspot on my mobile phone. So the ewon wifi connects to the hotspot just to bypass the possible  company firewalls problems i.e. ports being closed etc.., to make sure the connection will work. The basic script i'm using works fine as said when have it all tied up in a local network and local broker. Are there any settings in the eWon I have to consider? 

Best reagrds,
Frank van Tour


RE: MQTT connect failed operation - fvantour - 05-07-2018

As all options I tried failed, i decided to reload the latest firmware again. This resolved the issues.


RE: MQTT connect failed operation - simon - 06-07-2018

Frank,

Were you using a Static IP config for your WIFI ?
There is actually a known issue with static IP config using Wifi in the firmware 13.0s0. DHCP is well working. This will be fixed in the next firmware release.

Simon


RE: MQTT connect failed operation - fvantour - 06-07-2018

Simon,

The WiFi address was assigned via DHCP, so the issue was of a different nature......



Grtz
Frank


RE: MQTT connect failed operation - pgreiner - 19-07-2018

(06-07-2018, 01:24 PM)Simon Wrote: Frank,

Were you using a Static IP config for your WIFI ?
There is actually a known issue with static IP config using Wifi in the firmware 13.0s0.  DHCP is well working. This will be fixed in the next firmware release.

Simon

Hi Simon,

I, too, fail to establish a connection using the simplest of programs (like the sample https://ewonsupport.biz/mqtt/program.bas.txt on your website). 

When running the program, I always get the message "Operation Failed (28) : MQTT "CONNECT". My eWon is correctly connected to the Internet, and I really struggle to find a solution for this... I would be really grateful for any help, and can provide any additional detail as needed. The problem is of a different nature than the one you mention here, as I use the FLB 3202 3G extension card to connect to the internet.

Thanks in advance for your reply, 

Philippe


RE: MQTT connect failed operation - simon - 20-07-2018

Philippe,

Have you checked whether the port 1883 is opened on your network?

Simon


RE: MQTT connect failed operation - pgreiner - 20-07-2018

(20-07-2018, 03:23 PM)Simon Wrote: Philippe,

Have you checked whether the port 1883 is opened on your network?

Simon

How can I check that ? The eWON is connected to the internet by a 3g extension card


RE: MQTT connect failed operation - pgreiner - 01-08-2018

(20-07-2018, 03:30 PM)pgreiner Wrote:
(20-07-2018, 03:23 PM)Simon Wrote: Philippe,

Have you checked whether the port 1883 is opened on your network?

Simon

How can I check that ? The eWON is connected to the internet by a 3g extension card

Hi, I have still not managed to solve this. Do you have any additional advice ? 

Thanks!


RE: MQTT connect failed operation - dominik.windhab - 27-09-2018

Hi!

I am currently struggling with the same problem. Connection via WiFi is working properly, but as soon as I am connected via GPRS the console says Operation Failed Mqtt "Connect".

Any hints for me?

Found a solution here:

https://forum.hms-networks.com/t/ewon-flexy-over-3g-mqtt-connection-fail/5523/18


RE: MQTT connect failed operation - simon - 28-09-2018

Indeed, this issue will be fixed in the next firmware.


RE: MQTT connect failed operation - rgreeley - 23-05-2019

Is this issue fixed with firmware 13.2? We are seeing it as explained and I did not see anything in the release notes regarding this.