check if ESP is powered on first time or from deep sleep
Posted: Tue Jan 03, 2023 4:28 pm
is there a way at the setup/loop logic to know if the device is powered on for the first time or was waken up from:
ESP.deepSleep(sleepTime, WAKE_RF_DISABLED);
i need to differentiate the two scenarios and do some different logic for each of these cases
ESP.deepSleep(sleepTime, WAKE_RF_DISABLED);
i need to differentiate the two scenarios and do some different logic for each of these cases