Hello,
i created an array of 4 float variables to store it in the NVS memory. I can save and read back this file using the preverences lib. So far it works fine.
But how can i extract the 4 float variables from the arreay ?
Thanks for your help !
Manfred
Hi.
I’m not sure that I understood your question.
Can you be a little more specific and share more details?
Regards,
Sara
Hi Sara, thanks for your assistance.
i’m trying to store and read back a float array to the non volatile space of a ESP32 like this:
float testfloat[]{A,B,C,D} // A-D = float variables
preferences.putFloat(“test”, test[]); // save the float array
…….
testfloat[] = preferences(“test”, false); // read back the float array
this seems to be not possible, because the preferences.h cannnot handle float arrays.
Ist there any other way, to save and read back 4 float variables in one turn, to make less as possible write cycles to the NVS memory space?
Thanks, Manfred