create_device_sync


Description:

[ Version ( since = "0.1.2" ) ]
public Device create_device_sync (string id, ObjectScope scope, HashTable<string,string>? properties, Cancellable? cancellable = null) throws Error

Creates a color device.

WARNING: This function is synchronous, and may block. Do not use it in GUI applications.

Parameters:

this

a Client instance.

id

identifier for the device

scope

the scope of the device

properties

properties to set on the device, or null

cancellable

a Cancellable, or null

Returns:

A Device object, or null for error