Create a new Device instance.
DeviceTypeDefinitions of the device
Optional endpoint options
ProtectedcommandProtecteddeviceOne or multiple DeviceTypeDefinitions of the endpoint
Protected_executeProtectedExecute a command handler. Should only be used internally, but cannot be declared as protected officially because needed public for derived classes.
Command name to execute the handler for
Rest...args: any[]Arguments to be passed to the handler
Method to add command handlers to the device. The base class do not expose any commands!
Command name to add a handler for
Handler function to be executed when the command is received
ProtectedcreateProtectedcreateProtectedremoveMethod to remove command handlers from the device. The base class do not expose any commands!
Command name to remove the handler from
Handler function to be removed
Base class for all devices. This class should be extended by all devices.