Hi all,
I really need some help here.
I’m using arduino uno with wifly shield RN-131C. Powered by batteries.
My wifly works with WebClient example on the wifly library 2. I’m using a push-button. where if the button pushed the wifly GET the URL and if its not pushed it GET another URL. The URL will update a php code. my problem is “GET” work only one time (puched button, even if its re-pushed it wont work again) . Is there a way to clear GET to allow sending another URL?
my code is:
void loop() {
if (button == HIGH) {
client.println("GET http://*****.com/****.php?update ");
client.println(" ");
}else {
client.println("GET http://*****.com/****.php?do ");
client.println(" ");
}
}
Thanks,
Nadds