Ansicht von 3 Antwort-Themen
  • Autor
    Beiträge
    • #3816
      VenderwelVenderwel
      Teilnehmer

      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] ******************

      • Dieses Thema wurde geändert vor 2 Jahren, 6 Monaten von Venderwel.
    • #3818
      VenderwelVenderwel
      Teilnehmer

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

    • #3819
      Joos BuijsJoos Buijs
      Administrator

      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
        Teilnehmer

        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
          Administrator

          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
            Teilnehmer

            There’s no such option with the ESP32 boards.

    • #3823
      VenderwelVenderwel
      Teilnehmer

      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!

Ansicht von 3 Antwort-Themen
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.