Create a new Device instance.
DeviceTypeDefinitions of the device
Optional endpoint options
Protected
commandProtected
deviceOne or multiple DeviceTypeDefinitions of the endpoint
Protected
_executeProtected
Execute 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
Protected
createProtected
createProtected
removeMethod 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.