Page 1 of 1

(answered) using NVS hex2bin

Posted: Tue Nov 13, 2018 3:02 pm
by mzimmers
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...

Re: using NVS hex2bin

Posted: Tue Nov 13, 2018 3:23 pm
by ESP_igrr
"hex2bin", "binary", "base64" options all produce a "blob" type in NVS.

Re: using NVS hex2bin

Posted: Wed Nov 14, 2018 3:37 pm
by mzimmers
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).

Re: using NVS hex2bin

Posted: Wed Nov 14, 2018 3:48 pm
by loboris
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

Re: using NVS hex2bin

Posted: Wed Nov 14, 2018 4:32 pm
by mzimmers
I check the "Notify me" box when I start a thread. That's always resulted in me getting an email until recently.