I am using an imp002 for an application that is very power consumption conscious. Under certain conditions it has to do 1s period sleeps, between which it does some sensor readings. I am using the deepsleep for this, because the static 3mA of the imp.wakeup() sleep are forbidden current values for this application.
The problem is that on every second that it awakes the guy attempts to connect to the WiFi, although the WiFi was disabled before the deep sleep. As it wakes up I see a very sudden peak of current over 60mA, so I am guessing that this is due to WiFi connecting, before the imp code turns the WiFi off again by setting the server.disconnect().
In the Imp’s documentation it is stated that awakenings of the deepsleep won’t cause the WiFi to be brought up again, but I am not finding any error in my algorithm. Do you know anything about this or have any suggestion for any revision of my code?
Thank you truly for your attention!