Skip to content

set(properties:)

Function to change the value of multiple properties in a single message

swift
func set(properties: [FlakePropertyProtocol]) async throws -> [FlakePropertyProtocol]

Return Value

An array of FlakePropertyProtocol since changing one Value may trigger changes to others or itself

Parameters

  • properties: an array of Property objects with the new values

Discussion

The device of this request may decide to adjust the values, for example if there are max and min values. This will be represented in the returned FlakePropertyProtocol array