I have a structure
struct info{
int id;
int color;
double speed;
}
How do I send it using senddown?
I am currently using formatted string to send the struct
char buff[100];
info inf = {1,1,1.4}
snprintf(buff , sizeof(buff), "%d,%d%f" ,inf.id, inf.color,inf.speed);
wsm->setWsmData(buff);
sendDown(wsm);
But I need to extract all parameters from string and make then make a new struct.
Is it possible that I can just senddown the structure such that I don't need to parse it on every receiving node.