DeviceInfo
DeviceInfo

Contains information on an attached device

Types
DeviceStatus
STATUS_UNKNOWN

0 - Device Status is Unknown, the port may or may not be already open.

STATUS_AVAILABLE

1 - The Device is available, the port is currently closed.

STATUS_UNAVAILABLE

2 - The Device is unavailable, the port is currently in use.

Functions
DeviceInfo
DeviceInfo()

Creates a DeviceInfo object

DeviceInfo
DeviceInfo(
DeviceStatus status,
std::string serial
)

Creates a DeviceInfo object with the given parameters

Parameters
status

The DeviceStatus for the device

serial
std::string

The serial address that is issued for this device

Variables
m_status
DeviceStatus m_status

The DeviceStatus for the device

m_serial
std::string m_serial

The serial address that is issued for this device

Functions
status
DeviceStatus status() const

Gets the DeviceStatus for the device

Returns

A DeviceStatus that represents the connetion status of the device

serial
std::string serial() const

Gets the serial address for the device

Returns

The serial number of the device