Chat here about code rewrites, mods, etc... with respect to the github project https://github.com/esp8266/Arduino

Moderator: igrr

User avatar
By djelo
#73615 Hey all, was wondering for my project which of the two scenarios would use the least amount of battery power.
1) Wake up every 30 minutes, perform some measurements, send of measurements, deepsleep again
2) Wake up every 30 minutes with WAKE_RF_Disabled, fail to connect->restart, now RF enabled, connect and do as above, then sleep again with RF_Disabled.

Any idea if I save more with 2 while sleeping then the extra time spent awake or if the total usage in 1 is comparable so as to not make the extra steps in 2 unnecessary?
User avatar
By schufti
#73640 with wake_rf_disabled you will definitely have problems to connect ....

you probably mean wake_no_rfcal, but this is broken since core 2.0.0, it does rf_cal everytime
see here https://github.com/esp8266/Arduino/issu ... -342529577
you also can see that the difference is marginal. If you really want to save on battery you'd have to collect several measurements and transmit them in bulk once a while. sindenote: there is more energy to save at wifi connect: use static IP and persistent mode.

rf_disabled means no autoreconnect during bootup, so that may be contraproductive.
see here for startup differences with/without autoreconnect:
https://github.com/esp8266/Arduino/issu ... -356879088