Closed denden4444 closed 5 years ago
Hey Den,
I mean its just a C library - so it should work anywhere that has a C compiler. I have zero experience with either of those things you mentioned, you'll have to investigate yourself!
If you do get it working, I'd love to hear about your experience.
Cheers, -Neil.
Hey Neil
Thanks for the feedback .. Happy to try it :-) Would you perhaps be able to guide be on getting this serialized using the library (and/or back again ) then I'll load all up , try it and ping you back with results
// an example struct
struct new_info {
int id;
char name[20];
char location[20];
unsigned long entryTime;
unsigned long exitTime;
char pattern[20];
char height[6];
char pod[3];
bool altActive;
bool enableUse;
};
const int TableSize = 4;//set size
new_info inTable[TableSize] = {//fill it with stuff to test
{100, "heat", "pipe1", 153788400, 1537970400, "circle", "1234", "11", 1, 1},
{200, "cold", "pipe2", 153788400, 1537970400, "fast", "6543", "22", 1, 0},
{300, "warm", "pipe3", 153788400, 1537970400, "fast", "6543", "22", 1, 0},
{400, "cold", "pipe4", 153788400, 1537970400, "slow", "1111", "33", 1, 0}
};
Kind regards Den
Wow this looks awesome :-)
Is there any way of getting this to work on an ESP8266/NodeMCU ?
I would like to serialize a struct and then do the reverse if possible.
Would be happy to try and feedback results.
Kind regards Den