torntrousers wrote:would be happy to be shown how to do that.
As I explained in my post above, I managed to do that with the following approach:
Going to sleep
wifi.setmode(wifi.NULLMODE)
node.dsleep(1000000)
After wake-up
--- your code here that doesn't need wifi
wifi.setmode(wifi.STATION)
wifi.sta.connect()
--- Wifi is connected
According to the PR linked above there will soon be a new function available to do this in more elegant and supported way.