I'm using the WiFi shield on an Arduino Uno but I do not think the shield is fully disconnecting. I have a loop that checks a sensor for input. If the sensor hits the threshold, it connects with te WiFi shield to download some data, sleeps for a few seconds, then enters the loop again.
The function that I have to connect to the network, in it's simplest form, performs a WiFi.begin(), client.connect(), send message, client.stop() and WiFi.disconnect().
However, as I enter the main loop (after what I believe to be disconnecting form the network) the LINK light on the shield remains on. Furthermore if I loop through the loop after quite some time the Uno eventually halts. This is suggestive of a memory leak.
With the green light on am I REALLY disconnected from the network despite me running client.stop() and WiFi.disconnect()?
Has anyone else seen memory leak issues with the WiFi Shield?
I am also using the SD card and I've heard that there used to be memory leaks with that, but if I am not using strings to interface with the SD card I should be good, right? I am referring to this link about the SD card memory leak: http://stackoverflow.com/questions/11690647/arduino-memory-leaks-sd-card-strings
I am executing a close() each time I reference the SD card...