Constructor.
Service config.
Service logger.
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 desired relay state.
Dosage target (0 = chlorine, 1 = pH minus, 2 = pH plus).
Desired duration in seconds.
The CommandService uses the
/Command.htm
endpoint of the ProCon.IP pool controller to turn on manual dosage for a given amount of time/seconds.