interface Property<T>
abstract val id: String
Unique ID that conforms to Homie convention for IDs |
|
abstract val name: String?
User supplied friendly name for property |
abstract fun subscribe(update: (PropertyUpdate<T>) -> Unit): Unit
Called when the controller sends a property update |
|
abstract fun update(t: T): Unit
Submits an update to controller |