I need wifi shild every 10 minutes, so i want to disconnect the wifi shild to save power. In program i use client.stop(); and WiFi.disconnect();, but the wifi link led is still on.
Thanks for helping
I need wifi shild every 10 minutes, so i want to disconnect the wifi shild to save power. In program i use client.stop(); and WiFi.disconnect();, but the wifi link led is still on.
Thanks for helping
Which WiFi shield? Typically shields draw power all the time. If that is not what you want, you'll need a non-shield version or to connect the shield to a breadboard and re-wire the connections to the Arduino. The power to the shield as a shield can not be controlled by software. The power to the shield, on the breadboard, could be.
I have this wifi shield http://arduino.cc/en/Main/ArduinoWiFiShield . From which pin wifi shileld gets electricity. Is it pin 5V?
Hello,
I've the same issue and it's seems to be a well-known issue.
It seems there is an automatic process to reconnect the shield, so I tried to force the disconnection with this code:
actualTime=millis();
startTime= millis();
while(actualTime - startTime < 45000 ) {
WiFi.disconnect();
actualTime = millis();
}
With this code, the shield is disconnected but it is impossible to reconnect the shield after this disconnection
=> Afterward, the shield won't be recognized by the Arduino or the status returned by the function "begin" is = 4, and not WL_CONNECTED.
(Arduino Duemilanove for me)
Does anyone have any idea of how to solve this?
Thanks,
Romain.