# What LMIC state must be preserved during sleep mode?

**URL:** <https://www.thethingsnetwork.org/forum/t/what-lmic-state-must-be-preserved-during-sleep-mode/19477>\
**Category:** LMIC\
**Created:** [November 6, 2018, 10:26am UTC](https://www.thethingsnetwork.org/forum/t/what-lmic-state-must-be-preserved-during-sleep-mode/19477 "2018-11-06T10:26:27Z")\
**Posts on this page:** 1\
**Showing post:** 32

<div class="post-metadata">

**Author:** ![bluejedi](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bluejedi/32/44639_2.png) [@bluejedi](https://www.thethingsnetwork.org/forum/u/bluejedi)\
**Post date:** [February 28, 2021, 9:52pm UTC](https://www.thethingsnetwork.org/forum/t/what-lmic-state-must-be-preserved-during-sleep-mode/19477/32 "2021-02-28T21:52:53Z")

</div>

> [@al1fch](#):
>
> So RTCRam is good for what you wnat to do

Useful suggestion as alternative for storing in non-volatile storage like flash.  
However, the LMIC library keeps its state in normal RAM so the state still needs to be saved to RTCRAM before deepsleep and restored after wakeup.

According to (recent) LoRaWAN specs certain parameters (e.g. devnonce) should even be stored in NV storage that can survive power cycles.

---

_[View the full topic](https://www.thethingsnetwork.org/forum/t/what-lmic-state-must-be-preserved-during-sleep-mode/19477)._
