modify_device_async


Description:

[ Version ( since = "1.5.0" ) ]
public async bool modify_device_async (string device_id, string key, string value, Cancellable? cancellable) throws Error

Modifies a device in a specific way.

Not all properties on the Device are settable by the client, and some may have other restrictions on value.

Parameters:

this

A Client

device_id

the device ID

key

the key, e.g. `Flags`

value

the key, e.g. `reported`

cancellable

the Cancellable, or null

callback

the function to run on completion

callback_data

the data to pass to callback