On the sparkfun ones i get: ERROR: the index ‘getimpeeid’ does not exist.
`
function awake()
{
server.log("Awake!");
//bunch of stuff not needed for example
local deep = 20 -(time() % 20);
server.log("Start deep sleep for: " + deep);
server.sleepfor(deep);
}
imp.configure(“Wake and Sleep”, [], []);
server.show(“Starting”);
// Set an alarm for some future time when …
imp.wakeup(0.1, awake);
if ((“nv” in getroottable()) && (“count” in nv))
{
nv.count++;
}
else
{
nv <- {count=1};
}
getimpeeid is a firmware5 enhancement (the imp wiki contains a list of those).
I would say the sp imp is running an older firmware if it cannot find it - I use this function to test the firmeware version
I would try to put the unbound code (or other factory code) to it and let it run for 10 minutes without touching it and hoping the firmware will be updated together with the user code update … Than try my own software again …
They now have the update queued, so just power them off and on and they should pick up the new code.
The FW queueing is currently manual for imps never before seen by the server (ie, fresh out of the packet imps) - we’ll shortly be making every brand new imp do an update on first connect, which will solve the issue.
Sorry for the delay!
Note that firmware updates will only ever happen at boot time, we don’t force imps already running to take new firmware. This will be a user option in the future so you can update otherwise inaccessible imps from the planner.