Home > @ibloat/homie-ts > Device
A Homie Device It holds the Nodes and is generally responsible for interactions with the broker
| Property | Access Modifier | Type | Description |
|---|---|---|---|
attributes |
DeviceAttributes |
||
connected |
boolean |
||
id |
string |
||
nodes |
{<p/> [key: string]: Node;<p/> } |
| 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 |