Logs in to the KLF interface by sending the GW_PASSWORD_ENTER_REQ.
The password needed for login. The factory default password is velux123.
Optional
timeout: numberA timeout in seconds. After the timeout the returned promise will be rejected.
Returns a promise that resolves to true on success or rejects with the errors.
Logs out from the KLF interface and closes the socket.
Optional
timeout: numberA timeout in seconds. After the timeout the returned promise will be rejected.
Returns a promise that resolves to true on successful logout or rejects with the errors.
Add a handler to listen for confirmations and notification. You can provide an optional filter to listen only to specific events.
Callback functions that is called for an event
Optional
filter: GatewayCommand[]Array of GatewayCommand entries you want to listen to. Optional.
Returns a Disposable that you can call to remove the handler.
Add a handler to listen for confirmations and notification. You can provide an optional filter to listen only to specific events.
Callback functions that is called for an event
Optional
filter: GatewayCommand[]Array of GatewayCommand entries you want to listen to. Optional.
Returns a Disposable that you can call to remove the handler.
Sends a request frame to the KLF interface.
The frame that should be sent to the KLF interface.
Optional
timeout: numberA timeout in seconds. After the timeout the returned promise will be rejected.
Returns a promise with the corresponding confirmation message as value. In case of an error frame the promise will be rejected with the error number. If the request frame is a command (with a SessionID) than the promise will be resolved by the corresponding confirmation frame with a matching session ID.
Optional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: numberOptional
timeout: number
Interface for the connection.
IConnection