You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ESP hosted web server is not responding when ESP is not connected to home wifi.
Hardware
Hardware: ESP-1
Core Version: ?2.1.0-rc2?
Description
Problem description
I am trying to build a basic app in which multiple ESPs will request their status to 1 ESP (like STAR schema). below are two kind of ESPs in my project:
ESP monitor: AP_STA + hosted web server + sends HTTP post to internet for sync itself
ESP clients : Connected via ESP Monitor n/w+ Send HTTP GET request to ESP monitor.
it is working perfectly fine when ESP monitor is got connected to my home WIFI. But if i switched off my home WIFI, ESP clients are not getting any response from ESP Monitor while clients are able to connect to ESP Monitor n/w.
Settings in IDE
Module: Generic ESP8266 Module
CPU Frequency: 80Mhz
Sketch
include <ESP8266WiFi.h>
include <ESP8266WebServer.h>
include <ESP8266WiFiMulti.h>
include <ESP8266HTTPClient.h>
include <Arduino.h>
include <EEPROM.h>
void setup(void){
Serial.begin(115200);
EEPROM.begin(4096);
WiFi.mode(WIFI_AP_STA);
WiFi.softAP("ESP_LAN", "12345678");
WiFi.config(ip, gateway, subnet);
server.on("/", handleRoot);
server.on("/AppCMD",AppCMD);
server.on("/ServeMe", ServeMe);
server.onNotFound(handleNotFound);
server.begin();
Serial.println("HTTP server started");
WiFi.begin(ssid, password);
Serial.println(MONITOR_REQ_STR);
// Wait for connection
int k=0;
while (WiFi.status() != WL_CONNECTED && k<5) {
delay(500);
Serial.print(".");
k++;
}
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
The text was updated successfully, but these errors were encountered:
indexpert
changed the title
Web server hosted on ESP8266 is not responding when home WIFI powered off.
Web server hosted on ESP8266 is not responding when it is not connected to home wifi
Mar 11, 2016
Basic Infos
ESP hosted web server is not responding when ESP is not connected to home wifi.
Hardware
Hardware: ESP-1
Core Version: ?2.1.0-rc2?
Description
Problem description
I am trying to build a basic app in which multiple ESPs will request their status to 1 ESP (like STAR schema). below are two kind of ESPs in my project:
ESP monitor: AP_STA + hosted web server + sends HTTP post to internet for sync itself
ESP clients : Connected via ESP Monitor n/w+ Send HTTP GET request to ESP monitor.
it is working perfectly fine when ESP monitor is got connected to my home WIFI. But if i switched off my home WIFI, ESP clients are not getting any response from ESP Monitor while clients are able to connect to ESP Monitor n/w.
Settings in IDE
Module: Generic ESP8266 Module
CPU Frequency: 80Mhz
Sketch
include <ESP8266WiFi.h>
include <ESP8266WebServer.h>
include <ESP8266WiFiMulti.h>
include <ESP8266HTTPClient.h>
include <Arduino.h>
include <EEPROM.h>
void setup(void){
Serial.begin(115200);
EEPROM.begin(4096);
WiFi.mode(WIFI_AP_STA);
WiFi.softAP("ESP_LAN", "12345678");
WiFi.config(ip, gateway, subnet);
server.on("/", handleRoot);
server.on("/AppCMD",AppCMD);
server.on("/ServeMe", ServeMe);
server.onNotFound(handleNotFound);
server.begin();
Serial.println("HTTP server started");
WiFi.begin(ssid, password);
Serial.println(MONITOR_REQ_STR);
// Wait for connection
int k=0;
while (WiFi.status() != WL_CONNECTED && k<5) {
delay(500);
Serial.print(".");
k++;
}
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
if(Tot_Recs==0||Tot_Recs==255)
{
Serial.println("Init Started");
inIt();
}
else
{ Serial.println("Restarted");
ReStart();
}
}
void loop(void){
server.handleClient();
}
The text was updated successfully, but these errors were encountered: