homie-ts

View the Project on GitHub ibloat/homie-ts

Home > @ibloat/homie-ts > Device

Device class

A Homie Device It holds the Nodes and is generally responsible for interactions with the broker

Properties

Property Access Modifier Type Description
attributes   DeviceAttributes  
connected   boolean  
id   string  
nodes   {<p/> [key: string]: Node;<p/> }  

Methods

Method Access Modifier Returns Description
constructor(__0)     Constructs a new instance of the Device class
addNode(node)   void  
cleanupTopics(staleOnly, timeout)   Promise<void>  
connect()   Promise<void>  
disconnect()   Promise<void>  
removeNode(node)   void