• 0 Votes
    2 Posts
    407 Views
    J
    @gabrielapb You could try the following: save the current timestamp to NVS before going to sleep on wake-up: retrieve the saved timestamp from NVS retrieve the "remaining sleep" from the Pysense using pysense.get_sleep_remaining current timestamp is approximately saved + sleep interval - remaining Note this won't get you a very precise time (as it doesn't take into account boot time, and I'm not sure of the accuracy of the Pysense clock), and the offset to the real time will increase with the number of sleep periods, but it's helpful to have at least of rough idea of the time until you can get the actual time through other means. The alternative is to use the module's deep sleep rather than the Pysense's deep sleep, but that may not be possible depending on your actual use case.
  • deepsleep & memory

    GPy rtc memory gpy deepsleep flash
    3
    0 Votes
    3 Posts
    638 Views
    rcolisteteR
    From the pycom module documentation : "pycom.nvs_erase_all() Erase the entire NVRAM memory area." AFAIK, there is no way to see all of the contents of nvram on ESP32/Pycom boards.
  • Roadmap features

    Enhancements roadmap rtc memory huawei
    5
    4 Votes
    5 Posts
    1k Views
    M
    @jardar I don't work for PyCom, so I don't know what they have planned for the future. For sure it would be of interest to have an idea of what they are going to implement (or not going to implement) in the next future.