Agent only runs when IMP does!

Ok a re-read of the IDE guide “but if you include code in the ‘Agent’ window it will automatically instantiate the agent when the device boots up” Ok One question if you have an Agent waking up on a imp.wakeup and the device boots at the same time does the wakeup handler block the boot of the Agent?

Thanks as always

The agent is launched the first time the imp is seen; it will then continue running even when the imp goes away. The imp coming back does not reboot the agent.

We’re working out how we deal with agents when imps go away for extended periods. Current thoughts are that the agents will run for a month after the last time the imp has been seen, then they will be put into stasis until the imp returns.

Ok can you explain this; imp deep sleeps for 2 mins warm boots and so does it’s agent. I have three other imp/agents behaving in the same way?

First line of agentserver.log("agent: tempHumidity Monitor start");

Sun, 10 Feb 2013 08:07:36 GMT: Power state: offline=>online
Sun, 10 Feb 2013 08:07:36 GMT: agent: tempHumidity Monitor start
Sun, 10 Feb 2013 08:07:36 GMT: Device booting
Sun, 10 Feb 2013 08:07:37 GMT: Device configured to be "Temp/Humidity v4.1"
Sun, 10 Feb 2013 08:07:37 GMT: temp 15.4C humidity 56.7%
Sun, 10 Feb 2013 08:07:38 GMT: sleeping until 1360483781000
Sun, 10 Feb 2013 08:07:38 GMT: Power state: online=>asleep
Sun, 10 Feb 2013 08:09:46 GMT: Power state: asleep=>online
Sun, 10 Feb 2013 08:09:46 GMT: agent: tempHumidity Monitor start
Sun, 10 Feb 2013 08:09:46 GMT: Device booting
Sun, 10 Feb 2013 08:09:46 GMT: Device configured to be "Temp/Humidity v4.1"
Sun, 10 Feb 2013 08:09:46 GMT: temp 15.4C humidity 56.7%
Sun, 10 Feb 2013 08:09:47 GMT: sleeping until 1360483911000
Sun, 10 Feb 2013 08:09:47 GMT: Power state: online=>asleep

Ok, that would appear to be a bug… we will look into it!