Hi Hugo,
Thanks for your explanation, much clearer now. With the operation of the imp totally dependent of it being online, I guess it is reasonable to ask how often the server updates occurs ( I have just observed another online/ offline instance), as each time it updates the imp presumable is out of action for up to 10 - 20 secs (or have i got it wrong).
Cheers,
Ken
I saw a problem this morning where the log had indicated a online=>ofline as the last entry. After going back to planner and clicking edit the Logs pane was updated and showed that it had a offline=>online and further watchdog outputs present.
So, the log stopping after offline->online is a bug (the web client should be attempting reconnect but something is failing here). This will be fixed soon.
Server updates will become seamless in the fairly near future too, so you shouldn’t notice any downtime at all.
As to how often server updates come in, we will be splitting servers out and having much more infrequent updates - ideally with an option for users to be able to pick the server they’d like to use (some downtime but new features first, or fewer updates and more uptime).
I added the “watchdog” code with the fake outport in my project and it caused an error: “ERROR: the index ‘myoutput’ does not exist”. It still powers itself off with out the watchdog code or with the first version of the watchdog code.
Here is my code, I cannot figure out where to put the watchdog but have the issue of the imp going to sleep.
Thanks Hugo
`// Switches on the light based on input
// Configure an input to the imp from the planner
class input extends InputPort {
type=“number”;
name=“output”;
function set(s) {
// Write the pin and show the change on the planner
hardware.pin9.write(s?1:0);
server.show(s?"Light On":"Light Off");
server.log(s?"Light On":"Light Off");
}
}
// Configure pin1 as an output
hardware.pin9.configure(DIGITAL_OUT_OD_PULLUP);
// Configure ourselves with the one input
imp.configure(“Output”, [input()], []);`
Release 23 has the bug fixed. If that’s really your complete code, I’ve no idea why it goes offline because it looks like it should be just fine (wd is being referenced, even though it’s not in the imp.configure, but I believe that shouldn’t cause things to go bang).
I’ll post when we roll it out. We’re rolling out some server changes and decided to hold the client update back until the server changes were deployed.
Given how close it is, I’ll leave the known issues page alone for now…
OK so what are my options then? I found this post initially since my Imp also needs to be reinserted or power cycled every time I wish to upload a new piece of code to it.
I bought the imp a month ago from Sparkfun, could I have gotten an older version that still has the SW issues? (this was mentioned earlier in this thread)