So.. I'm working on a project using C++ and I have multiple structures and I have only one fuction that need to have one of that structures as a parameter.
I already searched everywhere and I only found examples with one structure in specific...
Here is one of my structures
struct {
int tag_id;
String serial;
} dataHeader;
And here where I pass it
loraSend(message, &dataHeader);
And here is the function that will receive the struct as a parameter
void loraSend(String message, struct MsgStruct &msg_struct)
The problem is that this is just giving this error: "no matching function for call to 'loraSend(String&, <anonymous struct>*)' ".
Can you explain to me how can I fix this?
Thanks a lot