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:publish () | Build and publish the v5 device |
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:publish ()
- Build and publish the v5 device
- Device:start ()
- Starts the device. Will subscribe to the device topics (v4) to build the description, and start.