Hello
When my ESP12F start, millis() is already about 180-200...
Trying to save power, is it
Hello
When my ESP12F start, millis() is already about 180-200...
Trying to save power, is it
So? It does take some time to set up everything in the background before it starts executing your code.
Sorry, message gone to fast and thx for reply
I try to save power... my job between deepsleep is only 13mS....
200mS to initialize what (modem is off) ?
extern "C" {
#include <user_interface.h>
}
long dateon=millis();
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println();
Serial.println(dateon);
delay(2000);
system_deep_sleep_set_option(4);
ESP.deepSleep(5e6);
}
void loop() {
// put your main code here, to run repeatedly:
}
I know to little of the ESP8266 core but the AVR core does all sorts of things like setting up millis() in the first place. I can imagine the ESP8266 even does more because it's a more complex chip. For example, I can imagine you need to turn off the radio if you don't want it etc. Jus drive into the files of the ESP8266 core and see.