class Device
A device represents a physical piece of hardware. For example, an Arduino/ESP8266 or a coffee machine. |
|
class Node
Nodes are independent or logically separable parts of a device. For example, a car might expose a wheels node, an engine node and a lights node. |
|
interface Property<T>
|
|
enum class PropertyType
Defines the different types of properties depending on the feature of the node being modeled. |
|
data class PropertyUpdate<T>
A property update delivered from MQTT |
fun device(id: String, name: String = id, init: Device.() -> Unit): Device
Create a new device instance |