(answered) using NVS hex2bin

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

(answered) using NVS hex2bin

Postby mzimmers » Tue Nov 13, 2018 3:02 pm

Hi, all -

I use the NVS Partition Generator Utility to create binary files for flashing to the ESP32. My CSV file looks something like this:

Code: Select all

key,type,encoding,value
cd_ns_serial,namespace,,
serialNbr,data,string,"123456789"
macAddr,data,hex2bin,112233445566
label,data,string,"Cyberdata, Inc."
I've edited the .bin file to verify that the hex to binary conversion is successful.

But now...how do I read that data programmatically? It doesn't fit any of the data types identified in the NVS library.

Thanks...
Last edited by mzimmers on Wed Nov 14, 2018 9:37 pm, edited 1 time in total.

ESP_igrr
Posts: 2067
Joined: Tue Dec 01, 2015 8:37 am

Re: using NVS hex2bin

Postby ESP_igrr » Tue Nov 13, 2018 3:23 pm

"hex2bin", "binary", "base64" options all produce a "blob" type in NVS.

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

Re: using NVS hex2bin

Postby mzimmers » Wed Nov 14, 2018 3:37 pm

Ah...OK, thanks, Igrr.

BTW: I don't seem to be getting notifications when people (like you) reply to me...is the notification emailer down? It's happened on a few threads of mine (like this one).

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: using NVS hex2bin

Postby loboris » Wed Nov 14, 2018 3:48 pm

mzimmers wrote:
Wed Nov 14, 2018 3:37 pm
I don't seem to be getting notifications when people (like you) reply to me...is the notification emailer down? It's happened on a few threads of mine (like this one).
Topic tools -> Subscribe topic

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

Re: using NVS hex2bin

Postby mzimmers » Wed Nov 14, 2018 4:32 pm

I check the "Notify me" box when I start a thread. That's always resulted in me getting an email until recently.

Who is online

Users browsing this forum: Kavya S and 108 guests