Arduino ESP8266 Compile OK, but lose ESP afer reboot!
Posted: 31 Jan 2020, 09:30
Good morning, sir,
I can easily compile and upload ESPEasy Mega.
I changed in the custom.h file the data to access my router. But I still have to reconfigure it with the address : 192.168.4.1
#define DEFAULT_NAME "MyEspEasyDevice" // Enter your device friendly name
#define UNIT 0 // Unit Number
#define DEFAULT_DELAY 60 // Sleep Delay in seconds
// --- Wifi AP Mode (when your Wifi Network is not reachable) ----------------------------------------
#define DEFAULT_AP_IP 192, 168, 90, 90 // Enter IP address (comma separated) for AP (config) mode
#define DEFAULT_AP_SUBNET 255, 255, 255, 0 // Enter IP address (comma separated) for AP (config) mode
#define DEFAULT_AP_KEY "configesp" // Enter network WPA key for AP (config) mode
// --- Wifi Client Mode -----------------------------------------------------------------------------
#define DEFAULT_SSID "ATEHO" // Enter your network SSID
#define DEFAULT_KEY "stark2015" // Enter your network WPA key
#define DEFAULT_USE_STATIC_IP true // (true|false) enabled or disabled static IP
#define DEFAULT_IP "192.168.90.80" // Enter your IP address
#define DEFAULT_DNS "192.168.90.1" // Enter your DNS
#define DEFAULT_GW "192.168.90.1" // Enter your Gateway
#define DEFAULT_SUBNET "255.255.255.0" // Enter your Subnet
#define DEFAULT_IPRANGE_LOW "0.0.0.0" // Allowed IP range to access webserver
#define DEFAULT_IPRANGE_HIGH "255.255.255.255" // Allowed IP range to access webserver
#define DEFAULT_IP_BLOCK_LEVEL 1 // 0: ALL_ALLOWED 1: LOCAL_SUBNET_ALLOWED 2:
// ONLY_IP_RANGE_ALLOWED
#define DEFAULT_ADMIN_USERNAME "admin"
If I go through the config menu and I enter my data, a yellow frame displays: Warning: Connected via AP.
If I save the config and reboot my ESP. Then do not lose communication with the ESP8266. Even searching for it in the Wifi or by the fixed IP address that I put.
Many thanks in advance for your help
Otto
I can easily compile and upload ESPEasy Mega.
I changed in the custom.h file the data to access my router. But I still have to reconfigure it with the address : 192.168.4.1
#define DEFAULT_NAME "MyEspEasyDevice" // Enter your device friendly name
#define UNIT 0 // Unit Number
#define DEFAULT_DELAY 60 // Sleep Delay in seconds
// --- Wifi AP Mode (when your Wifi Network is not reachable) ----------------------------------------
#define DEFAULT_AP_IP 192, 168, 90, 90 // Enter IP address (comma separated) for AP (config) mode
#define DEFAULT_AP_SUBNET 255, 255, 255, 0 // Enter IP address (comma separated) for AP (config) mode
#define DEFAULT_AP_KEY "configesp" // Enter network WPA key for AP (config) mode
// --- Wifi Client Mode -----------------------------------------------------------------------------
#define DEFAULT_SSID "ATEHO" // Enter your network SSID
#define DEFAULT_KEY "stark2015" // Enter your network WPA key
#define DEFAULT_USE_STATIC_IP true // (true|false) enabled or disabled static IP
#define DEFAULT_IP "192.168.90.80" // Enter your IP address
#define DEFAULT_DNS "192.168.90.1" // Enter your DNS
#define DEFAULT_GW "192.168.90.1" // Enter your Gateway
#define DEFAULT_SUBNET "255.255.255.0" // Enter your Subnet
#define DEFAULT_IPRANGE_LOW "0.0.0.0" // Allowed IP range to access webserver
#define DEFAULT_IPRANGE_HIGH "255.255.255.255" // Allowed IP range to access webserver
#define DEFAULT_IP_BLOCK_LEVEL 1 // 0: ALL_ALLOWED 1: LOCAL_SUBNET_ALLOWED 2:
// ONLY_IP_RANGE_ALLOWED
#define DEFAULT_ADMIN_USERNAME "admin"
If I go through the config menu and I enter my data, a yellow frame displays: Warning: Connected via AP.
If I save the config and reboot my ESP. Then do not lose communication with the ESP8266. Even searching for it in the Wifi or by the fixed IP address that I put.
Many thanks in advance for your help
Otto