Initialize a new RelayDataInterpreter.
A pair of bit patterns in decimal representation according to the way the
/usrcfg.cgi
endpoints wants its values.
Evaluate the current relay states and set the bitStates accordingly.
The determined values are used to set the switching parameters. Therefore,
the input values should be as up-to-date as possible. Otherwise, a change
on one relay will reset all other relays based on the stateData
.
Important This method should be called before using any of the set operations (setOn, setOff, setAuto).
The most recent GetStateData instance.
True if the given relay (GetStateDataObject) is currently in auto mode.
True if the given relay (GetStateDataObject) is currently not in auto mode.
True if the given relay (GetStateDataObject) is currently switched off.
True if the given relay (GetStateDataObject) is currently switched on.
Return the appropriate bit patterns for the /usrcfg.cgi
endpoint to
switch the given relay (GetStateDataObject) into auto mode.
Return the appropriate bit patterns for the /usrcfg.cgi
endpoint to
switch the given relay (GetStateDataObject) off.
Return the appropriate bit patterns for the /usrcfg.cgi
endpoint to
switch the given relay (GetStateDataObject) on.
The RelayDataInterpreter is a helper for all the binary operations that are necessary to read and write relay states.