Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How is OnSystemStatus supposed to work?

Featured Replies

Posted

I have a thread that sits on a wait() when I want to send a control to the ISY but isISYReady() == false. In the OnSystemStatus method, if "busy == false", I wake the thread and let it send the control to the ISY. I have never seen a "busy == false" when handling OnSystemStatus. So, once my control sending thread detects isISYReady() == false, it never comes out of the wait.

 

Any suggestions?

 

Tom

  • Author

Please ignore this for now. I have more testing to do. It may be that all I see is busy == false and not busy == true.

 

Tom

  • Author

Next attempt here. It seems busy == false every time OnSystemStatus is called. Initially, my "control sending thread" would then attempt to send the control. I have now changed it so that if isISYReady() == false, it goes back into the wait. With trace points, I see that more than 90% of the time, the "control sending thread" is getting isISYReady() == false after being woke. In the one instance I saw isISYReady() == true, the control got sent and the light changed state. Just a reminder, I have 8 cores, so there is very little "thread waiting on execution queue".

 

Does any of this make sense?

 

Tom

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.