Hi there.
I working in a code that, when the Particle Cloud is not available, stores an hourly measured value
into an array. If the array is full, the oldest value is lost, and when the Particle Cloud is available again
it sends it the stored values.
I successfully tested the code using a float array to store the measured values (that are, of course, floats).
When the Particle Cloud is available, the code creates a string that includes an identifier, time stamp and the measured value to hit a webhook.
Since when I creating the abobe mentioned string, I successfully used:
strcat (WHTemp, String (Measured_Value,3));
to send the measured value with only 3 decimal places into the webhook, I was wondering if instead of creating an array of floats, I can use an arrays of “strings” to save memory space.
First, I will like to know if I will be saving memory doing that and second how to do it
I wrote this so far:
char* power[100];
...
char inter[25];
strcpy (inter, String (Measured_Value,3));
power[0] = inter;
but my logic could be completely wrong.
I will appreciate your help.
Thank you!