Comments (16)
that is indeed very bad. this is with 2.0.0-dev7?
from espeasy.
I do not think there was any change between the last release and 2.0.0-dev7 regarding the "connect" routine. But I will give it a try to be sure with one of my sensors.
from espeasy.
I confirm, no change with the latest version.
from espeasy.
Yep all i needed to know that it was 2.0.0-dev7 or newer. I'll look into it and fix it. (going to use deep sleep on battery's myself as well)
from espeasy.
Any news on the battery drain in sleep mode when router is not reachable ?
from espeasy.
still didnt get to it:(
from espeasy.
working on the wifi stuff right now (making it more efficient and fixing issues)
from espeasy.
there where various issues with it. it also was trying to connect to SSID2, even though it wasnt defined. this resulted in 6 connection attempts, which takes ages.
now it will only do one connection attempts on the main SSID, and another one on SSID2 if its defined.
also serial logging is much more clear now.
try it and let me know if you have any issues. :)
from espeasy.
Thank you ! Could you please give some details on how the ESPEasy should behave now. I my case, It tried to connect until battery was gone if there was no Router in view. If we use sleep mode, I would understand it would try again after the sleep time, means if if my router is switched off during the night, the ESPEasy would still have tried during the night, bot not non-stop. Maybe I can follow your changes, I guess you modified Espeasy.ino and wifi.ino!
from espeasy.
As far as i could see it would try to connect 6 times, almost taking a minute in total.
New behaivior: Try to connect 1 time (and 1 time to ssid2 if its defined), do stuff (even if connection fails), sleep again.
I didnt test with any controllers and timeouts for that, so i will test that as well now.
from espeasy.
from espeasy.
I tested with one sysinfo device to http domoticz, while using a non-existing SSID:
INIT : Booting version:
FS : Mounting...
FS : Mount successful, used 72288 bytes of 957314
INIT : Free RAM:25592
INIT : I2C
INIT : SPI not enabled
WIFI : AP Mode disabled
IP : Static IP :192.168.13.92
WIFI : Connecting blah attempt #1
WIFI : Could not connect to AP!
WIFI : AP Mode enabled, reachable on 192.168.4.1
INIT : Rebooted from deepsleep #37
WD : Uptime 0 ConnectFailures 0 FreeMem 20320
SYS : 0.00
HTTP : connection failed
SLEEP: Entering deep sleep...
EVENT: System#Sleep
This took almost 20 seconds. So if your sleep delay is 60 seconds, it will have a dutycycle of 25%.
Now here's what we could do: If it cant connect, just go back to deepsleep immeadeatly without doing anything. I'll think i add an option for this. We should also make controllers smart so that they dont try to connect when there's no connection.
from espeasy.
ok, I usually use sleep time of 10 minutes (600secs). An option "goto deep sleep if connection fails" would be a good solution!
from espeasy.
Ok added a new option for this. will document it on wiki.
from espeasy.
from espeasy.
i'm using Ubuntu 16.04.2 LTS, with platformio.
from espeasy.
Related Issues (20)
- Dosimeter module RadSens I2C support required HOT 15
- OLED SSD1306 HOT 2
- Can not connect hidden SSID HOT 8
- Can't enable I2C Device HOT 6
- [BUG] bin gets rejected because of file size when building in vscode HOT 5
- [Wanted] Need testers for upcoming build (end Nov '23) HOT 21
- [BUG][P076] calculation with multiplier values is broken HOT 21
- NEOPIXEL 7-segment display HOT 2
- [BUG][P159] "Generate Events only when changed" not working. HOT 9
- [BUG] DOCs on Website is not updated HOT 4
- To use system variables Output clock plugin. HOT 29
- [BUG] Energy (AC) - Eastron SDMxxx Modbus (P078) and formula problem HOT 1
- nodemcu wont start HOT 6
- T6963 plugin HOT 3
- Test HOT 3
- UART speed converter HOT 14
- [Test Build] Upcoming X-mas build, testers wanted HOT 121
- [BUG] [P012] Display LCD2004 in Line 1 show ESP Easy if it is blank HOT 10
- [BUG] [NeoPixel] [ESP8266] NeoPixel plugins are fixed on GPIO-2 since NeoPixelBus_Wrapper was introduced
- [BUG] stall on Upgrade to 20231225 HOT 32
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espeasy.