# How to persist LMIC OTAA parameters with an ESP32?

**URL:** <https://www.thethingsnetwork.org/forum/t/how-to-persist-lmic-otaa-parameters-with-an-esp32/35032>\
**Category:** LMIC\
**Created:** [March 3, 2020, 8:08pm UTC](https://www.thethingsnetwork.org/forum/t/how-to-persist-lmic-otaa-parameters-with-an-esp32/35032 "2020-03-03T20:08:26Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![jhughes1010](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jhughes1010/32/25844_2.png) [@jhughes1010](https://www.thethingsnetwork.org/forum/u/jhughes1010)\
**Post date:** [November 9, 2020, 12:59am UTC](https://www.thethingsnetwork.org/forum/t/how-to-persist-lmic-otaa-parameters-with-an-esp32/35032/23 "2020-11-09T00:59:02Z")

</div>

@JackGruber good and bad news. Bad news is that the code you suggested did not help me, but I did determine the problem, or at least a workaround. I was able to get initial OTAA,sleep, and initial sensor data send. It would then start another EV\_TXSTART immediately after the data send, but then go to sleep. I simple ensured I explicitly reset the GOTO\_DEEPSLEEP to false during the “phantom send” on the EV\_TXSTART event case . I’m sure this is all happening as a result of my copy of LMIC data from RTC, but without setting the critical members of the structure. I’m going to call this a workaround at this point in time, but I can sleep the controller and wake without issue.

---

<div class="post-metadata">

**Author:** ![fbarreto](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/fbarreto/32/25844_2.png) [@fbarreto](https://www.thethingsnetwork.org/forum/u/fbarreto)\
**Post date:** [November 9, 2020, 9:27pm UTC](https://www.thethingsnetwork.org/forum/t/how-to-persist-lmic-otaa-parameters-with-an-esp32/35032/24 "2020-11-09T21:27:22Z")

</div>

@jhughes1010 , please, can you detail how did you do this workaround ? The ESP32 node only receives a RX downlink message if I send a confirmed uplink.

---

<div class="post-metadata">

**Author:** ![rsanjai](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/rsanjai/32/35697_2.png) [@rsanjai](https://www.thethingsnetwork.org/forum/u/rsanjai)\
**Post date:** [November 9, 2022, 5:59am UTC](https://www.thethingsnetwork.org/forum/t/how-to-persist-lmic-otaa-parameters-with-an-esp32/35032/25 "2022-11-09T05:59:48Z")

</div>

I have saved the LMIC data in FRAM. but my node doesn’t have a sleep feature. my Node is turned-off and when it gets turned on it gets the data from FRAM. but no data is received at the TTN dashboard. do the device need to know how much time is turned off to properly work??

---

<div class="post-metadata">

**Author:** ![Jeff-UK](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jeff-uk/32/35697_2.png) [@Jeff-UK](https://www.thethingsnetwork.org/forum/u/Jeff-UK)\
**Post date:** [November 23, 2022, 1:57pm UTC](https://www.thethingsnetwork.org/forum/t/how-to-persist-lmic-otaa-parameters-with-an-esp32/35032/27 "2022-11-23T13:57:27Z")

</div>

Mod Comment: Post prior deleted as basically a link to spam marketing…nice try!

User also deleted…

[Previous page](https://www.thethingsnetwork.org/forum/t/how-to-persist-lmic-otaa-parameters-with-an-esp32/35032.md?page=1)
