BAOS SDK v2  1.0.1
An SDK providing access to IP-BAOS devices through BAOS binary protocol version 2.x
DeviceGroupIdentifier Struct Reference

Unique identifier for a device. More...

#include <baos/device/BaosDevicesMeta.h>

Public Member Functions

 DeviceGroupIdentifier (const protocol::ServerItem &manufacturerApp, const protocol::ServerItem &applicationId, const protocol::ServerItem &applicationVersion)
 Construct a new Device Identifier object build from baos::protocol::ServerItem elements. More...
 
 DeviceGroupIdentifier (std::uint16_t manufacturerApp, std::uint16_t applicationId, std::uint8_t applicationVersion)
 Construct a new Device Identifier object from intergral values. More...
 
bool operator== (const DeviceGroupIdentifier &other) const
 The comparision operator for the class.
 
bool operator< (const DeviceGroupIdentifier &other) const
 The lesser than operator of this class.
 

Public Attributes

std::array< std::byte, 5 > deviceid
 The unique inferfacegroup id.
 

Detailed Description

Unique identifier for a device.

The combination of manufacturer code of the ETS app, the application id and version allows to target a specific group of devices

Constructor & Destructor Documentation

◆ DeviceGroupIdentifier() [1/2]

DeviceGroupIdentifier ( const protocol::ServerItem manufacturerApp,
const protocol::ServerItem applicationId,
const protocol::ServerItem applicationVersion 
)
inline

Construct a new Device Identifier object build from baos::protocol::ServerItem elements.

Parameters
manufacturerAppThe manufacturer code of the ETS App
applicationIdThe application id of the ETS App
applicationVersionThe application version of the ETS App

◆ DeviceGroupIdentifier() [2/2]

DeviceGroupIdentifier ( std::uint16_t  manufacturerApp,
std::uint16_t  applicationId,
std::uint8_t  applicationVersion 
)
inline

Construct a new Device Identifier object from intergral values.

Parameters
manufacturerAppThe manufacturer code of the ETS App
applicationIdThe application id of the ETS App
applicationVersionThe application version of the ETS App

The documentation for this struct was generated from the following file: