This is an infinite loop. I now see instructions not to do this. Ooops. The log says Power state: online=>offline.
My question is this: How do I recover? Do I just cycle power on the imp? My concern is that when I cycle the power, it will just run the same program and go offline again.
I am running it remotely. Is there any way to reset the imp remotely when it goes offline like this?
-Mark
Just edit the code, save it, then power cycle the imp. It will load the new code.
There is not a way to reset it remotely when it goes offline like this, no. Whilst that’d be nice, and maybe we will have some way of forcibly suspending code that runs for too long on the imp without running the network stack, right now the imp OS keeps out of the way when user code is running so that there are few surprises with execution performance.