Welcome to MattzoBricks › Forums › MattzoTrainController for Powered Up (MTC4PU) › PTC4PU won’t connect to mqtt
- This topic has 6 replies, 2 voices, and was last updated 2 years, 6 months ago by Venderwel.
-
AuthorPosts
-
-
October 22, 2021 at 14:03 #3816VenderwelParticipant
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] ****************** -
October 22, 2021 at 15:12 #3818VenderwelParticipant
Come to think of it, I’m not really sure it connects to wifi.
-
October 23, 2021 at 07:39 #3819Joos BuijsKeymaster
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!
-
October 23, 2021 at 15:30 #3820VenderwelParticipant
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?
-
October 24, 2021 at 08:28 #3821Joos BuijsKeymaster
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.
-
-
-
October 26, 2021 at 16:53 #3823VenderwelParticipant
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!
-
-
AuthorPosts
- You must be logged in to reply to this topic.