DeviceModel Class

Namespace: id3.Devices

Definition

Defines a specific model of a device, including its identifiable name and a descriptive summary of its capabilities or features
Additionally, it incorporates a callback function for handling device-specific commands, enabling responsive and adaptable device operations within software applications.
class DeviceModel
class DeviceModel implements Finalizable
public partial class DeviceModel
public class DeviceModel implements AutoCloseable, Serializable
typedef struct id3DevicesDeviceModel *ID3_DEVICES_DEVICE_MODEL;

Usage

deviceModelInstance = DeviceModel()
# ...

Explicit destruction

# ...
del deviceModelInstance
final deviceModelInstance = sdk.DeviceModel();
// ...

Explicit destruction

// ...
deviceModelInstance.dispose()
using (var deviceModelInstance = new DeviceModel())
{
   // ...
}

Explicit destruction

var deviceModelInstance = new DeviceModel()
// ...
deviceModelInstance.Dispose()
try (DeviceModel deviceModelInstance = new DeviceModel()) {
// ...
}

Explicit destruction

DeviceModel deviceModelInstance = new DeviceModel();
// ...
deviceModelInstance.close();
ID3_DEVICES_DEVICE_MODEL hDeviceModel{};
int err = id3DevicesDeviceModel_Initialize(&hDeviceModel);
if (err == ID3_SUCCESS) {
    // ...
    id3DevicesDeviceModel_Dispose(&hDeviceModel);
}

Properties

Name

Type

Description

commandCallback

DeviceModelCommandCallback

(C++) References a callback function specific to the device model that is invoked to execute commands or actions on the device

description

string

Provides a detailed description of the device model, including its purpose, capabilities, and any other relevant information that can help in understanding what the device is and what it can do

deviceType

DeviceType

Enumerated type defining the category or function of the device, such as sensor, actuator, etc., with a default state of Unknown.

name

string

Identifies the device model with a unique name

Methods

Name

Description

addUsbVendorId

(C++) Adds a USB Vendor ID to the USB Vendor ID list for plug and play filtering.