W5100 MQTT gateway fails to connect to broker



  • I have always found everyone on this forum generally really helpful, so I'm hoping some will be able to help me solve my problem. I have recently been testing Home Assistant and I'm now trying to get mysenors up and running with it.

    I already have the latest verison of mosquitto up and running on my RPI without any problems and I've been able to publish and subcribe to topics, so I know its working OK.

    I have just compiled and uploaded the default W5100 MQTT gateway sketch and altered the various settings and when I restart the arduino I get the following in the serial monitor

    IP: 192.ting MQTT connection...
    IP: 192.168.0.87
    0;255;3;0;9;Attempting MQTT connection...
    0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:GW MODE
    0;255;3;0;9;TSM:READY
    IP: 192.168.0.87
    0;255;3;0;9;No registration required
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    IP: 192.168.0.87
    0;255;3;0;9;Attempting MQTT connection...
    IP: 192.168.0.87
    

    So the gateway is never able to connect to the MQTT broker. I have double checked everything and restarted, recomplied and still no luck. Am I missing something obvious, Any help would be very much appreciated


  • Admin

    @Matt-Pitts It would be helpful if you post your sketch... and possibly your mosquitto broker config file. .



  • It was a silly mistake, I have forgotten to uncomment the username and password, its working now 🙂


  • Admin

    @Matt-Pitts Excellent! 👍


Log in to reply
 

Suggested Topics

41
Online

11.4k
Users

11.1k
Topics

112.7k
Posts