Agent not running

I’ve put some example code from the site in the agent but is says “not running”. I’ve clicked check and Build and run put still “not running”

How can I fix this? I’ve have read some threads about it but could find any solution

Is the device associated with the agent online?

No not at the moment. But I read in another thread that is should be online a month after last shutdown of device.

If, any time the device was actually online, the agent wasn’t started (because it didn’t have code) it won’t be running.

You need to power up the device, start your agent, then you can let the device disconnect.

…though, not much fun writing agent code without a device…

I understand. The agent works fine now, even with the device offline. Thank you