Store an integer array to NVS

KaranRaj
Posts: 16
Joined: Wed Jan 16, 2019 5:43 am

Store an integer array to NVS

Postby KaranRaj » Wed Feb 13, 2019 1:43 pm

Hi All!
Can anyone help me out on how to store an integer array (in my case, consisting of 144 elements) to the Non-Volatile Storage? I need to get the array after my ESP wakes up from deep-sleep, just so you understand why I need to do that.
Thanks!

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: Store an integer array to NVS

Postby ESP_Sprite » Thu Feb 14, 2019 2:58 am

I have de-capped your title, no need to scream. You should be able to store your array as a blob type.

mikemoy
Posts: 599
Joined: Fri Jan 12, 2018 9:10 pm

Re: Store an integer array to NVS

Postby mikemoy » Thu Feb 14, 2019 11:39 pm


KaranRaj
Posts: 16
Joined: Wed Jan 16, 2019 5:43 am

Re: Store an integer array to NVS

Postby KaranRaj » Tue Feb 19, 2019 6:53 am

Sorry about the caps, and thanks for the reply. I was able to save the array into the NVS using blob.

Who is online

Users browsing this forum: No registered users and 116 guests