ImpOS Release 36 Problem

One of my IMP001 devices started disconnecting/reconnecting every 10 minutes since the last firmware upgrade (currently Version 36.3). I couldn’t find anything specific in the release notes that should affect my code. My other devices are on Version 34 and they are fine. I’m using Bullwinkle 2.3.2 otherwise the code is very simple. Any suggestions?

2017-04-24 13:55:15 -04:00 [Status] Device disconnected
2017-04-24 13:55:53 -04:00 [Status] Device connected
2017-04-24 14:05:13 -04:00 [Status] Device disconnected
2017-04-24 14:05:50 -04:00 [Status] Device connected
2017-04-24 14:15:12 -04:00 [Status] Device disconnected
2017-04-24 14:15:50 -04:00 [Status] Device connected
2017-04-24 14:25:26 -04:00 [Status] Device disconnected
2017-04-24 14:25:53 -04:00 [Status] Device connected

Please DM the mac address and we’ll take a look.

This is unrelated to the impOS upgrade; I can see the same device disconnecting and reconnecting every ten minutes on 2017-04-22, when it was still running 34.11.

The error in the server logs implies that the device is not responding to protocol pings. This is often a symptom of your squirrel never yielding. Do you have an infinite (or long-running) loop in your code?

Our logs suggest the imp was also disconnecting/reconnecting before the upgrade to version 36.

Does the Squirrel application yield to impOS regularly? If not, our servers may periodically force a disconnection, which could explain the behaviour you’re seeing.

To confirm this, would you be happy to DM us a copy of your Squirrel, so we can investigate further?

Looks like the “imp.sleep” I added recently was causing the problem. No more disconnects after I commented it out. Thanks for your help.
function checkSiren() { imp.sleep(60); // more code... imp.wakeup(60, checkSiren); }