Does "ap_timeout" time period survive reboot?

Good morning,

short question: can anyone tell if or where to find information about

ap_timeout

time-period: I need to know If the counters value survives a reboot?

I have node hourly connecting for 15s just to transmit a sensed value via mqtt and then return to deep_sleep and I want it to prevent the deep sleep after, let´s say 6 hours (which means 6 times waking up and retrying for 15s to connect in my case). So I would set

wifi:
[...]
  ap:
  [..]
    ap_timeout: 90s

But actually this wouldn´t work if the timeout-counter resets itself after each reboot.

Would be very appreciated if anyone knows, could help or has an even better idea how to find another solution… :wink:

Gramais

Deep_sleep performs on_shutdown: and powers the ESP32 off.
When the ESP32 “wakes up” it is a power-on, and starts with on_boot:. Wi-fi is re-started at each boot. There is however a flag which is set with the reason for the boot; and global variables can be retained across deep_sleeps.

If you are wanting to count the number of times the ESP32 wakes up, that is easily accomplished with a global variable and a lambda in the on_boot: to increment the value.

I am puzzled why you are looking at the Wi-fi Access Point mode’s AP timeout ? Is your ESP running as an Access Point ?

Or is it that Your ESP is struggling to consistently boot up, establish Wi-fi connection, establish a MQTT session, and transmit the sensed value … all in 15 seconds ?