Re: Problem with deep sleep mode
Posted: Tue Mar 12, 2019 6:15 am
ok, I had this
Code: Select all
compiled with 2.4.2, running on a nodemcu clone with only rst-D0 directly connected, for hours now w/o any hickup.int LED = 2;
uint64_t TIEMPO_DeepSleep = 0x2625a0;
void setup() {
Serial.begin(74880);
pinMode(LED, OUTPUT);
digitalWrite(LED, LOW);
Serial.println("wake: " + String(millis()) );
// TIEMPO_Referencia = millis();
}
void loop() {
if (millis() > 2500) {
digitalWrite(LED, HIGH);
Serial.println("sleep: " + String(millis()));
ESP.deepSleep(TIEMPO_DeepSleep, WAKE_RF_DISABLED);
delay(100);
}
}