I am still looking for a better way to wait for the wake-up. The "sleep 1" seems too aggressive. Maybe increasing slightly (to 5s?) may be better, but still I really am not a fan of polling :-)
Also I noticed that sometimes (or right now quite often) I can not turn the WiFi on. My device wakes up rather reliably and my script runs, but it does not successfully establish a wifi or internet connection. Timeout is 20s.
|