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.

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.