![]() | 1 | initial version |
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?
![]() | 2 | No.2 Revision |
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
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?
© 2014 AllSeen Alliance, Inc. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. AllSeen and AllSeen Alliance are trademarks of the AllSeen Alliance, Inc.
Linux is a registered trademark of Linus Torvalds.
Please see our brand guidelines, trademark guidelines, terms of use and privacy policy.