Welcome to MattzoBricks Forums MattzoBricks General Forum Unable to connect rocrail to mosquitto.

Viewing 3 reply threads
  • Author
    Posts
    • #3750
      xx xxxx xx
      Participant

      Hi all,
      For the past few days I’ve been playing around with Mattzobricks. I’ve managed to get almost everything working, except for the connection between Rocrail and Mosquitto.

      Since there is little information about how to create this connection I was wondering if anyone can tell me how to accomplish this (on Windows 10).

      My current steps are:
      Download and install mosquitto.
      Alter the mosquitto.conf:
      allow_anonymous true
      listener 1883

      Run mosquitto -c mosquitto.conf -v

      Download and extract the zip for rocrail (64bit).
      Run Desktoplink.com
      Start rocview
      -File
      -Connect to
      Hostname: localhost
      Port: 8051
      Create a new plan
      -File
      -Open workspace
      -New directory
      Configure rocrail for the new plan
      -File
      -Rocrail properties
      -Tab Service
      MQTT Service
      Hostname: localhost (also tried 127.0.0.1 and the real ip-address)
      Port: 1883
      -Tab Controller
      vcs-1
      Hostname: localhost (also tried 127.0.0.1 and the real ip-address)
      Port: 1883

      The error I keep getting:
      mqtt broken socket
      send() failed[10053]
      cannnot write to socket errno=0
      recv() failed[10053] size=1 read=0

      Anyone got any ideas how to solve these errors ??

    • #3751
      xx xxxx xx
      Participant

      Found the answer.
      The mosquitto version I was using was v2.0.9. Rocrail requires the usage of a version prior to v2.

    • #3757
      Matthias RunteMatthias Runte
      Keymaster

      Something like that. Check https://mattzobricks.com/automation/controllers/general, section “MQTT”.

    • #5412
      Károly LónichKároly Lónich
      Participant

      For me it is working with Mosquitto version 2.0.15. I had to add a User ID under the Rocrail Properties->Service->MQTT Service.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.