SentinelAeon
Member
A very strange problem ...
So, i am currently running 3 ESP8266 wemos d1 boards, each controling its own system. They do certain tasks and also run a server so i can access their data through wifi. All worked great for almost a year.
Yesterday i was playing around with wifi settings to see if i can improve transfer between phone and computer over the home network. So i changed a few settings, wasn't happy with them so i did a hard reset of the modem/router, reseting to ISPs defaults, which appear to be what i had to begin with, when i got the modem/router.
What confuses me is that i suddenly cannot access the ESP8266 servers anymore. The code is simply so i have no idea what could cause this. Also what is really funny is ... i can suddenly see all 3 ESP8266 boards on my mobile phone as access points - i can actualy connect to them. I dont know if that was like this before but i never noticed it.
Here is the code, not sure it has anything to do with the situation though since its been working for a year.
Let me again state that this worked for a year. I tried different channels. What is strange though is that right now my router/modem is on channel 6, while those ESP8266's are on channel 1, at least that is what the wifi analyzer on my phone shows me. I tried changing router/modem to channel 1, does't make any difference.
I left the ESP8266's turned off over the night, same with router/modem - made no difference. The only other thing i can note is .. i tried changing the wifi bandwidth on modem/router. The problem is, i cant remember what the default value was. It gives me options auto, 20 or 40. Right now it is set to 20 and even if i change it to auto or 40, it still remains on 20.
So, i am currently running 3 ESP8266 wemos d1 boards, each controling its own system. They do certain tasks and also run a server so i can access their data through wifi. All worked great for almost a year.
Yesterday i was playing around with wifi settings to see if i can improve transfer between phone and computer over the home network. So i changed a few settings, wasn't happy with them so i did a hard reset of the modem/router, reseting to ISPs defaults, which appear to be what i had to begin with, when i got the modem/router.
What confuses me is that i suddenly cannot access the ESP8266 servers anymore. The code is simply so i have no idea what could cause this. Also what is really funny is ... i can suddenly see all 3 ESP8266 boards on my mobile phone as access points - i can actualy connect to them. I dont know if that was like this before but i never noticed it.
Here is the code, not sure it has anything to do with the situation though since its been working for a year.
Code:
void connectToWifi() {
Serial.begin(9600);
WiFi.begin("SSID", "PASSWORD");
for(int i=0;i<30;i++) {
if(WiFi.status() == WL_CONNECTED) break;
delay(30);
}
server.on("/", handleRootPath);
server.on("/data.html", handleRootPath);
server.begin();
IPAddress ip(192,168,64,51);
IPAddress gateway(192,168,64,1);
IPAddress subnet(255,255,255,0);
WiFi.config(ip, gateway, subnet);
}
Let me again state that this worked for a year. I tried different channels. What is strange though is that right now my router/modem is on channel 6, while those ESP8266's are on channel 1, at least that is what the wifi analyzer on my phone shows me. I tried changing router/modem to channel 1, does't make any difference.
I left the ESP8266's turned off over the night, same with router/modem - made no difference. The only other thing i can note is .. i tried changing the wifi bandwidth on modem/router. The problem is, i cant remember what the default value was. It gives me options auto, 20 or 40. Right now it is set to 20 and even if i change it to auto or 40, it still remains on 20.