Creates an instance of Gateway.
The connection that will be used to send and receive commands.
Changes the password of the KLF interface.
Provide the old password.
Provide a new password. The password must not exceed 32 characters.
Returns a promise that fulfills to true if the password has been changed successfully.
Disables the house status monitor.
After disabling the house status monitor you will no longer get notifications of changes.
Enables the house status monitor.
With the house status monitor enabled you can get notifications of changes of products.
Resets the KLF interface to the factory default settings. After 30 seconds you can reconnect.
Get the network settings
Returns an object with IP address, mask and default gateway and if DHCP is used.
Reads the protocol version information from the KLF interface.
Returns an object with major and minor version number of the protocol.
Gets the current state of the gateway.
Returns the current state and sub-state of the gateway.
Reads the version information from the KLF interface, e.g. the firmware software version number
Returns an object with the several version numbers.
If the gateway has been put into learn state by pressing the learn button then leaveLearnStateAsync can be called to leave the learn state.
Reboots the KLF interface. After reboot the socket has to be reconnected.
Set the KLF interface to use DHCP.
Set DHCP to true to use DHCP.
Set the KLF interface to use a fixed IP address.
Set DHCP to false to use a fixed IP address.
The IP address for the KLF interface.
The IP mask for the network settings.
The default gateway of your gateway.
Sets the time zone of the interface.
A string describing the time zone. See the KLF API documentation for details. Example: :GMT+1:GMT+2:0060:(1994)040102-0:110102-0
Sets the internal real time clock of the interface.
OptionalutcTimestamp: Date = ...The new date that should be set. Default is the current date/time.
Provides basic functions to control general functions of the KLF interface.
Gateway