rstrouse / ESPSomfy-RTS

A controller for Somfy RTS shades and blinds
The Unlicense
538 stars 36 forks source link

can't connect to a different WIFI once it is configured #478

Open user514 opened 3 hours ago

user514 commented 3 hours ago

Describe you new feature you'd like

Let me explain the problem. (I could be doing something wrong)

-My brother has a somfy installation. I'm the one who knows how to build and configure the thing. -I build a box with your (greeeeat! project). -I gave him the box with the firmware written and working but not configured -He plug the box at his house and I (remotely) configured his WIFI network on the first access to 192.168.4.1 -I disconnect and check that Ii can access then through 192.168.1.123. Everything ok. -I noticed RADIO DOESN'T INITIALIZE. Wrong wiring... my fault because upside downed the RF card. -He gave me back the box to fixit. -I plug it in my home... but couldn't access.

Here is the problem. I thought that if the esp32 hasn't been able to connect to a wifi (because in my house the wifi has a different name, of course)... passed some seconds or minutes, the internal network (192.168.4.1) will fallback and I will be able to connect to it and reconfigure wifi it to my place, etc.

...but I couldn't. I wait seconds, minutes, hours, but ESPSomfyRTS default network did not appear.

So. Is there any tip to reset the board (even loosing all its configuration) that allows me to connect it to a different wifi, without having to re-write through USB?.

If not... that's my request. An alternative way to reset the box without having to re-open it, disconnect, etc.

ps.- I even tried to get router from the closet, gave it the SSID that my brother has at it's house, with same password and connect it to my main router. That way, the esp32 will find a router with same info, will connect and I will be able to change wifi to my main one. But... I couldn't neither. Maybe the esp32 checks routers mac or something and didn't want to connect.

rstrouse commented 2 hours ago

It should automatically fall back to create an AP network. However, if you changed the Host Name the network will appear as the Host Name that was configured on the ESP32. It will do this if the network SSID cannot be found after 20 seconds.