Hey hey
.
I'm working on a small project where I need to distinguish if the esp was woken up by a button or a wakeup.
My plan was to extract the time from the RTC module and compare it with a fixed wake-up time, I am looking for such a solution but cannot find one.
The second solution is the circuit I already used Link . That is, a single state change on reset and a continuous signal on the pin, but I would like to solve this somehow in code rather than circuit.
Does anyone know maybe a better solution or a version with an RTC clock would be good? I don't know much how to get the time out of it.
Greetings Dawid

I'm working on a small project where I need to distinguish if the esp was woken up by a button or a wakeup.
My plan was to extract the time from the RTC module and compare it with a fixed wake-up time, I am looking for such a solution but cannot find one.
The second solution is the circuit I already used Link . That is, a single state change on reset and a continuous signal on the pin, but I would like to solve this somehow in code rather than circuit.
Does anyone know maybe a better solution or a version with an RTC clock would be good? I don't know much how to get the time out of it.
Greetings Dawid