I've checked several tutorials and they seem to contradict each other.
I have an array of integers. In order to store them in NVM, can I just write the whole array in one go with putUInt and read it with getUInt or do I need to manually store each element with a loop? Some example also use 'Byte' rather that Int... but a UInt is 4 bytes..
e.g. Can I do this:
uint32_t pulseHistory [ 93 ] = { NVM_Store.getUInt("pulseHistory", 0)};
(and does that zero above set the default to all elements if missing?)
Yes, I know my key name is the same as the variable; I like it.
or should it be bytes:
NVM_Store.getBytes("pulseHistory", &pulseHistory, 93);
or am I going to have to do it manually with a loop, one element at a time:
int count;
for (int count = 0; count < 93; count++) {
Serial.print(NVM_Store.getUInt("pulseHistory", 0));
// Not sure where the count would go above :-)
Serial.print(",");
}
thanks kindly,