Hi, this is my first post and I'm spanish, sorry for my english!
- I send with "Webduino" a URL like this: http://192.168.1.150/web/intRead?i=contador
- Arduino request the value of the int.
- I use this part of program and it works correctly.
int contador
int estado
...
(value is a char, and is the word after the "=", on this case contador)
if (strcmp(value,"contador") == 0)
{
int val = contador;
server.print(val);
}
else if (strcmp(value,"estado") == 0)
{
int val = estado;
server.print(val);
}
...
the program returns via web a integer (value of "contador")
Now I want to compare the value and the name of any public variable. If are the same, send the value of the integer variable.
Any idea? A lot of thanks, pexu!