Changing routers has messed up my MQTT wifi settings

224 views
Skip to first unread message

Soggy Paws

unread,
Sep 17, 2023, 4:49:49 AM9/17/23
to electrodacus
I recently changed from one router to another, and successfully changed the settings in the sbms0 wifi module.  The two routers have 2 different base ip addresses, so had to change both the wifi connection part and the MQTT part.  Everything was working!
I found the new router keeps hanging, so I wanted to change back to my old router.  When I changed the settings again in the wifi module configuration, rather than using the IP address for the computer in the MQTT settings section, I put in the computer's name:
DESKTOP-LA5C070.
Maybe I mispelled it, or maybe it's too long, or maybe it really only will accept a hard IP address vs the "host name".  It didn't complain when I entered that name and clicked the save button.  
After cycling power on the wifi module, it connects to the computer via the new wifi SSID, but the MQTT module isn't working, and the MQTT configuration page is not working.  See screenshot. edacus wifi settings.jpg
I have cycled the wifi on and off with no change.  I've connected directly to the sbms0, doesn't change.  How can I reset the wifi module to default settings?  I hope I don't have to "flash" it, because I'm not super clear on exactly how to do that and I'm scared I'll totally hose it.
If anyone has flashed the wifi module from Windows, can you give me a "for dummies" step by step on how to do it and not screw it up?

Helge Flataker

unread,
Sep 17, 2023, 5:40:12 AM9/17/23
to electrodacus
Flashing firmware is quite easy now that binary releases are available. No need to maintain a build environment and compile source yourself any longer.

Instructions follow, but if you do not want to do a full reflash, you can also attempt my alternate fix below

You can download the binary release from:

Get the  firmware.bin and the spiffs.bin file

To upgrade simply 
- Reboot the wifi module
- upload firmware.bin to the web interface at (In your case) http://192.168.8.114/update 
- upload spiffs.bin to the web interface at (In your case) http://192.168.8.114/update 
- Module should reboot automatically, if not reboot.

Please note this will completely wipe your settings so you will start all over again, meaning you have to connect to the wifi hotspot at 192.168.4.1 and enter your own wifi credentials etc.



An alternative fix in your specific case would be to just overwrite the /cfg/mqtt file. The following is untested as I'm on a mac but should work for windows:

Open powershell and issue the following commands:

Invoke-RestMethod -Uri "http://192.168.8.114/cfg/mqtt" -Method 'Post' -Body $mqttsettings

Then reboot the wifi module


Soggy Paws

unread,
Oct 19, 2023, 9:29:30 AM10/19/23
to electrodacus
Thanks so much for your detailed instructions.  That gives me a bit more confidence.  We left our boat in Malaysia the morning after I first posted about this, and decided to leave it as is, because (a) we didn't have time and (b) we could still monitor what was going on from afar using the legacy screen.  As soon as we get back, in mid-November, I will try both things you suggested (as a learning process).  And report back here so others know how it went.
Thanks again for taking the time to explain the process.  I understand it much better than what's described on the GitHub instructions.
Sherry

Soggy Paws

unread,
Nov 20, 2023, 11:21:11 PM11/20/23
to electrodacus
Helge, THANK YOU SO MUCH!!
Your 2nd procedure, explained very clearly, was very easy to follow and allowed me to recover and re-set-up everything properly.  I didn't try the first method.  Thank you so much for taking the time to explain it clearly, step-by-step.
I have recorded both methods for future reference.
Sherry

Soggy Paws

unread,
Nov 21, 2023, 8:13:00 PM11/21/23
to electrodacus
Actually, it turns out that what I had recorded to do (in a separate notes document I maintain) was your first procedure, not the second.
That was easy and worked fine, and apparently upgraded my Wifi module software.

Reply all
Reply to author
Forward
0 new messages