i'm still new to arduino and also to C++ and have a short question. What i want to do is to write a function (in my case to parse the query-string of an URL) to get the parameter names and values (varying number of parameters).
My function looks like the following:
String function readParams()
{
String params[x]; // x: number of params
// fill params[0]... params[x] with parameter names
return params;
}
void loop()
{
// do some stuff
String params[x] = readParams();
for(int i=0; i < x; i++)
{
debug(params[i]);
}
}
What is the correct return-type for the readParams() function in this case? And how to access the params in the main (loop) -function?
I hope the code makes it clear what i want to do.
Thanks, Marius