Problem on cummunicate beween arduino Mosquitto broker openhab



  • Hi I need anybody to help me regarding openHAB and Mosquitto to communicate with arduino mega + w5100 ethernet shield.

    I already install and followed all the installation step on both openHAB and Mosquitto.
    www.instructables.com/id/Garage-Genie-Parking-Remote-Control/?ALLSTEPS

    But, I got an error on openHAB:

    2015-03-11 00:38:03.979 [ERROR] [.io.transport.mqtt.MqttService] - Error starting broker connection

    org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server

    at org.eclipse.paho.client.mqttv3.internal.TCPNetworkModule.start(TCPNetworkModule.java:75) ~[na:na]

    at org.eclipse.paho.client.mqttv3.internal.ClientComms$ConnectBG.run(ClientComms.java:538) ~[na:na]

    at java.lang.Thread.run(Unknown Source) ~[na:1.8.0_40]

    Caused by: java.net.ConnectException: Connection timed out: connect

    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[na:1.8.0_40]

    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_40]

    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_40]

    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_40]

    at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_40]

    at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_40]

    at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_40]

    Arduino error:
    error connecting to MQTT

    Please, help me
    Tq.


  • Code Contributor

    @JackRyan Which part of your project mysensors comes in?



  • @celonunes: Actualy I just follow this link exactly :
    www.instructables.com/id/Garage-Genie-Parking-Remote-Control/?ALLSTEPS

    Step (After all the connection and installation done):
    1-open mosquitto in command windows
    2-open openHAB start.bat

    error at
    2015-03-11 00:38:03.979 [ERROR] [.io.transport.mqtt.MqttService] - Error starting broker connection

    org.eclipse.paho.client.mqttv3.MqttException: Unable to connect to server

    3- open arduino serial monitior
    error connecting to mqtt


  • Code Contributor

    @JackRyan You need to set the mosquitto server ip in the openhab.cfg file. I don't know if the instructables guide explain it. Did you do that?
    You can find more about it here:
    http://forum.mysensors.org/topic/303/mqtt-broker-gateway



  • @celonunes Yes I already done it like this right
    mqtt:mymosquitto.url=tcp://192.168.1.13:1883
    mqtt:mymosquitto.clientId=MQTT


  • Code Contributor

    @JackRyan You are running both mosquitto and openhab in the same computer, right? Are you sure 192.168.1.13 is your computer ip? If you are using Windows try to disable the firewall or change the ip in openhab.cfg to 127.0.0.1



  • This post is deleted!


  • This post is deleted!


  • Thank you for helping me...I just realize that my ip address is wrong.



  • hi all, i have a problem and i don't know where else to ask for help!
    i'm trying to install mosquitto broker in my pc for a long time but no positive result. i have a laptop with win 7 and after i download the mosquitto broker for my system a lot of dll have been required like ssleay 32 or cygcrypto .... after downloading and installing them when i try to open mosquitto.exe i get this message that the application was not able to start correctly (0xc000007b or something!
    can anyone please help understand what i'm doing wrong or what i have to do to see this mosquitto running on my pc?
    thank you in advance.



  • anybody, any ideea? how to set mosquitto in my pc?
    please help....
    thanks.


Log in to reply
 

Suggested Topics

  • 22
  • 19
  • 4
  • 2
  • 132
  • 1

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts