- Tue Oct 24, 2017 12:47 am
#71155
there is nothing much for examples.
In my sketch at a certain point I initialize WiFi and transfer my data.
If it is successful, I enter deepsleep with
ESP.deepSleep((945600000ull - micros()), RF_NO_CAL);
if it wasn't successful, I do it like this
ESP.deepSleep((945600000ull - micros()), RF_CAL);
If you use RF_DEFAULT it does (re)calibration only each n-th (10?) time according to soe text of espressif I can't find at the moment, but I never tried to verified this. I don't know where they store the count, so maybe a power cycle will reset or even a deep-sleep, maybe not a restart.
There is a report that since sdk 2.0 the RF_NO_CAL doesn't work any more, but I didn't find the time to verify that issue.