Use

The DeviceId data type is only used to model Qeo Device IDs. 

The DeviceId is generated by the Qeo framework when a device is registered to the Security Management Server.

Description

DeviceId consists of two 64 bit integers called "upper" and "lower".

QDM

The QDM description of DeviceId is shown in the QDM snippet below:

    <struct name="DeviceId">       
       <doc>this is the device ID generated by Qeo. </doc>
       <member name="upper" type="int64">
           <doc>Upper 64-bit of identifier.</doc>
       </member>
       <member name="lower" type="int64">
           <doc>Lower 64-bit of identifier.</doc>
       </member>
    </struct>

Example of Use: Retrieving DeviceId using C

The code snippet below illustrates how to retrieve a DeviceId in C. This sample was taken from the QGauge sample application. Go here for more info:

qeo_platform_device_info *info = NULL;
/* Fetch DeviceInfo */
assert(QEO_UTIL_OK == qeo_platform_get_device_info(&info));
/* Retrieve DeviceId from DeviceInfo */
_id = info->qeoDeviceId;
/* Free memory for DeviceInfo */
qeo_platform_free_device_info(&info);