So, in dealing with an SPI RF transceiver, it requires a power up sequence. I’m finding that I have to power off the board in order for it to work properly. Is there / will there be a way to know whether or not the imp just powered up or if the code was only reloaded?
Hmm, there’s no soft reset command you can send to the transceiver? The preferred solution would usually be to let the imp control the transceiver’s power, as that will result in the cleanest powerup sequence every time.
If Hugo’s suggestion doesn’t work out, you can use the “nv” table http://devwiki.electricimp.com/doku.php?id=electricimpapi#nv_table to distinguish cold boot-ups, from “warm” reboots due to the likes of server.sleepuntil(). Though having said that, I’ve got a nagging feeling that this might do the Wrong Thing with restarts caused by the “reload code” button: they might appear to be cold boots rather than warm boots. If so, that’s a bug, and we ought to fix it.