Infinite Loop

Hello,

By mistake I ran an infinite loop with a sleepfor() in my device and now it is disconnected and it doesn’t reconnect. Is there a way to build new code in my device to overwrite the current code with the infinite loop?

Thank you for any help

When it wakes from a sleepfor, it doesn’t bring up wifi unless you do something that requires a connection.

To recover, change the code, then power cycle the imp. At a cold boot, the imp will verify it has the latest code and hence will pick up your fix.

(note that you may need to unplug the imp for ~10 seconds to cold boot it, because it can run for a long time from the capacitors inside the card itself when it’s sleeping)

Great, thank you Hugo.