Viewing 3 reply threads
  • Author
    Posts
    • #3816
      VenderwelVenderwel
      Participant

      Hi all,

      It looks like my PTC4PU will not connect to mqtt. It’s on a AZdelivery ESP32 with ESP32 devkit (it looks like I need to use that one for ESP32-WROOM).

      I don’t see a thing in my mqtt broker, while my Layoutcontroller is visible in there. They use the same network settings.
      This is what I get on my com port:

      MattzoController booting…
      Loaded mattzoControllerId from EEPROM: 43030
      Connecting as MTC4PU43030 to Wifi Bakvetplein
      [1] MattzoController setup completed.
      [1] Discovering Powered Up Hubs…
      [1] Powered Up Hub found. MAC Address: 90:84:2b:03:a8:ba
      .
      [1] Initializing hub Yellow train (90:84:2b:03:a8:ba)…
      [1] Connecting to hub 0…
      [1] Connected to hub 0.
      [1] sending mqtt: roc2bricks/connectionStatus MTC4PU43030 Yellow train (90:84:2b:03:a8:ba) connected
      .
      .
      .
      .
      .
      [1] *** DEBUG-INFO ***
      [1] WiFi + MQTT connection Status: 0
      [1] Loco 0: Yellow train (5421). Target speed: 0, current speed: 0, max speed: 0
      [1] next hub to initialize (if any): 0
      [1] Hub 0: macAddress=90:84:2b:03:a8:ba: isConnecting()=0 isConnected()=1 status=1
      [1] Free heap size: 139680
      [1] Leargest free heap block: 113792
      [1] Minimm free heap size since boot: 137724
      [1] ******************

      • This topic was modified 2 years, 6 months ago by Venderwel.
    • #3818
      VenderwelVenderwel
      Participant

      Come to think of it, I’m not really sure it connects to wifi.

    • #3819
      Joos BuijsJoos Buijs
      Keymaster

      Hi vanderwel,

      This is a known issue in the 0.4 firmware. For my MC4PU I’m using the 0.3 version of the controller and Mattzo library. For the layout controller 0.4.1 works fine.

      Hope this helps!

      • #3820
        VenderwelVenderwel
        Participant

        Sadly not. I think I’m doing something wrong. Is there someone Who is willing to help me out and maybe take a look with Zoom or Teams?

        • #3821
          Joos BuijsJoos Buijs
          Keymaster

          Hi, unfortunately I cannot help you via teams for the coming week.

          What worked for me yesterday when my layout controller couldn’t connect anymore was to clear the wifi flash. If you’re using the Arduino IDE this is an option under ‘sketch’. Usually this is set to ‘sketch only’ but you might want to try to set it to ‘sketch + WiFi’. If that doesn’t work you can try the ‘flash all’ option but note that this also clears your Mattzo ID, which means you need to change the rocrail settings (except for the MC4PU, so you’re lucky).

          Hope this helps!

          PS I’m not behind my computer so the names between quotes might be slightly different in the Arduino IDE.

          • #3822
            VenderwelVenderwel
            Participant

            There’s no such option with the ESP32 boards.

    • #3823
      VenderwelVenderwel
      Participant

      Rrrrrrrrr……ofcourse. Always quadruple check the board and use the right one! Now it seems so connect!!! On to the next station in my project!

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