Arduino ESP8266 Compile OK, but lose ESP afer reboot!
Moderators: grovkillen, Stuntteam, TD-er
Arduino ESP8266 Compile OK, but lose ESP afer reboot!
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
- Attachments
-
- ArduinoESPEasy-Warning.jpg (83.13 KiB) Viewed 9746 times
-
- ArduinoESPEasy.jpg (137.27 KiB) Viewed 9746 times
Re: Arduino ESP8266 Compile OK, but lose ESP afer reboot!
I ran more tests. It happens as soon as I set a fixed IP address!
To get my ESP back, I have to re-download the .bin.
To get my ESP back, I have to re-download the .bin.
Re: Arduino ESP8266 Compile OK, but lose ESP afer reboot!
Static IP is broken in recent releases.I ran more tests. It happens as soon as I set a fixed IP address!
https://github.com/letscontrolit/ESPEasy/issues/2821
- Thomas
Re: Arduino ESP8266 Compile OK, but lose ESP afer reboot!
I can confirm this.
Even if I do a straight compile on either Ubuntu bionic or Windows 10 of the git repo, I have the same issue when setting the a fixed ip addres.
U use the latest atom/platformio on both platforms.
Even if I do a straight compile on either Ubuntu bionic or Windows 10 of the git repo, I have the same issue when setting the a fixed ip addres.
U use the latest atom/platformio on both platforms.
Re: Arduino ESP8266 Compile OK, but lose ESP afer reboot!
Many thanks for your information.
If anyone has an idea how to introduce a fixed IP in the source code I'm interested!
If anyone has an idea how to introduce a fixed IP in the source code I'm interested!
Re: Arduino ESP8266 Compile OK, but lose ESP afer reboot!
I am working on it, but sadly other (personal) issues have been taking way too much time lately so it has been delayed longer than I would have hoped it would.
Re: Arduino ESP8266 Compile OK, but lose ESP afer reboot!
Newest version (mega-20200204) fixed the static ip issue. I tested yesterday and works fine with my devices.
Stefan
Stefan
Re: Arduino ESP8266 Compile OK, but lose ESP afer reboot!
Thank for your information.
If I download the firmware : ESP_Easy_mega-20200204_custom_ESP8266_4M1M.bin to my ESP8266, every thins work well. I can change the config to a static IP.
I also downloaded the source : ESPEasy-mega-20200204.zip and added the device : _P119_BME680.ino
Compilation is OK. Upload is OK. But same as before as soon I change to a fixed IP the I can't access any more to the ESP!
Strange, isn't it!
If I download the firmware : ESP_Easy_mega-20200204_custom_ESP8266_4M1M.bin to my ESP8266, every thins work well. I can change the config to a static IP.
I also downloaded the source : ESPEasy-mega-20200204.zip and added the device : _P119_BME680.ino
Compilation is OK. Upload is OK. But same as before as soon I change to a fixed IP the I can't access any more to the ESP!
Strange, isn't it!
Re: Arduino ESP8266 Compile OK, but lose ESP afer reboot!
Please add your finding to the issue https://github.com/letscontrolit/ESPEasy/issues/2821
The issue is already closed so you can also open a new one and refer to the 2821 ticket
The issue is already closed so you can also open a new one and refer to the 2821 ticket
Re: Arduino ESP8266 Compile OK, but lose ESP afer reboot!
Thanks for your help.
now, my own compilation work well.
now, my own compilation work well.
Who is online
Users browsing this forum: Google [Bot] and 1 guest