Initialize a new UsrcfgCgiService
The service config.
The service logger.
A corresponding GetStateService (must address the same pool controller)
An instance of RelayDataInterpreter.
Protected
_configSpecific service endpoint.
A path relative to the IServiceConfig.controllerUrl.
HTTP request method for this specific service endpoint.
See: axios/Method
Protected
_requestCustom HTTP headers.
Custom headers can be defined in form of a key value pair.
this._requestHeaders["Cache-Control"] = "no-cache";
Protected
logLogger which will be used for all logging events.
Protected
axiosGet an axios/AxiosRequestConfig
object.
Get the base url.
The IServiceConfig.controllerUrl string.
Get the webservice url (joined base url and endpoint).
URL string (joined base url and endpoint).
Set the given relay in auto mode.
Relay data object.
Switch the given relay off.
Relay data object.
Switch the given relay on.
Relay data object.
The UsrcfgCgiService uses the
/usrcfg.cgi
endpoint of the ProCon.IP pool controller to switch its relay states.It uses two bit patterns in decimal representation, to set on/off and auto states for all relays at once. This means considering the states of all relays, those which states should be changed as well as the ones which states not gonna to be changed.