Control I/O

Written by Kevin Cloutier on Feb 26, 2024 3:29 pm

The Outputs on the JNIOR can be controlled via the JnrWebsocket protocol.  These commands are sent using the Control Message.

Each “Control” message must contain a “Command” member which may be one of the following valid values:

  • “Toggle”
  • “Close”
  • “Open”
  • “Reset Latch”
  • “Reset Counter”
  • “Reset Usage”

Each “Control” Message must contain a numeric “Channel” member specifying the input/output channel. This parameter is 1-based where the number ‘1’ specifies either the first Digital Input or first Relay Output. This depends on the specific “Command”.

There is no formal response to these command messages although a “Monitor” message will invariably follow some for obvious reasons.

Toggle Command

Close Command

Open Command

On this page