Imp software reboot

I need a way to reboot the device from software. Is the following upcoming in the next impOS release:
http://electricimp.com/docs/api/server/restart/

it appears it will restart the device, which is exactly what I need.

I’ve used it for a while, seems to work. Probably more elegant than:

function() { eatMem <- []; while (1) eatMem.push(blob(10000)) }

imp.deepsleepfor(n) will also restart the device and the nv table will be preserved.

server.restart() is actually implemented, the onshutdown() messages are the bit on that page which aren’t :slight_smile:

However, deepsleepfor() gives you a full power cycle.