Class Device
Device class that represents a Homie 4 device discovered, and mirrors it to Homie v5.
Methods
device:new (opts) | Creates a new device instance. |
device:start () | Starts the device. |
Methods
- device:new (opts)
-
Creates a new device instance.
Parameters:
- opts options table
Returns:
-
Device
the newly created instance.
- device:start ()
- Starts the device. Will subscribe to the device topics (v4) to build the description, and start.