Willkommen bei MattzoBricks › Foren › MattzoTrainController for Powered Up (MTC4PU) › PTC4PU won’t connect to mqtt
- Dieses Thema hat 6 Antworten und 2 Teilnehmer, und wurde zuletzt aktualisiert vor 2 Jahren, 6 Monaten von Venderwel.
-
AutorBeiträge
-
-
Oktober 22, 2021 um 14:03 Uhr #3816VenderwelTeilnehmer
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] ****************** -
Oktober 22, 2021 um 15:12 Uhr #3818VenderwelTeilnehmer
Come to think of it, I’m not really sure it connects to wifi.
-
Oktober 23, 2021 um 07:39 Uhr #3819Joos BuijsAdministrator
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!
-
Oktober 23, 2021 um 15:30 Uhr #3820VenderwelTeilnehmer
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?
-
Oktober 24, 2021 um 08:28 Uhr #3821Joos BuijsAdministrator
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.
-
-
-
Oktober 26, 2021 um 16:53 Uhr #3823VenderwelTeilnehmer
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!
-
-
AutorBeiträge
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.