Package jmri.server.json.power
@DefaultAnnotation({})
package jmri.server.json.power
The JMRI JSON protocol power server.
Replies to any request handled by this server include the following
properties in the JSON data object:
- name
- The user name of the connection supplying power.
- prefix
- The system prefix of the connection supplying power
(e.g.
"L"for LocoNet,"D"for DCC-EX). - state
- One of
JSON.UNKNOWN,JSON.ON,JSON.OFF, orJSON.IDLE - default
- True if this message represents the power state for the default power connection; false otherwise.
prefix field in the data object to
target a specific system connection. If prefix is absent, the default
connection is used. An unknown prefix returns an HTTP 400 error. WebSocket
clients receive state-change notifications only for the connection they
subscribed to; use method:"list" to subscribe to all connections.-
Classes