I am calling a checkRoomLight function every few seconds on one of the Arduino Yun boards and then calling AJ.METHOD on other 3 boards when the light level changes. Most of the time it works fine, but a couple of times i got this error:
ReferenceError: Peer has disconnected ajs_sessions.c:72 light_0040dd44_0001 light strict preventsyield checkRoomLight inference_engine.js:103 preventsyield
Whats strange to me is that even after this error i was able to see a device that got disconnected in Alljoyn ON and control it. On the other side, the script with 'checkRoomLight' function stopped executing.
What exactly is happening here and how would i work around it?