Jump to content

How to detect if a Remote Switch is set to ON or OFF


rwblinn

Recommended Posts

Hi All,

 

have build an app (based on the JavaScript API) using the remote switch bricklet to switch devices ON/OFF.

When starting the App, would like to determine the state of a remote switch to be able to set the initial state of the switches in the app.

 

Question: Is there a (JavaScript) function available? like getRemoteSwitchState resulting in on or off?

 

Appreciated,

Rob

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...