execute
abstract suspend fun execute(stateChangeRequest: StateChangeRequest): Result<Unit>
Content copied to clipboard
Executes the given StateChangeRequest.
Performs basic validation before execution (e.g. Property.writable is true
and Status is Status.Ready). If the validation fails, the Result will immediately be in failed state with an appropriate Exception.
Since
1.3.0
Return
Result tells if the execution was successful or not but does not contain any other data.
Parameters
state Change Request
container storing the list of state changes you want to perform on a certain IotDevice.