device element

Type: device
Namespace: http://eurotech.com/edc/2.0
XML Schema: edc.xsd

Device is an object representing a device or gateway connected to the Everyware platform. The Device object contains several useful information on the connected object including its connection status and its profile information. Each devices is defined in the context of an Everyware Account whose ID is specified in the Device accountId attribute.

Upon connecting to the Everyware platform, each device will publish a birth certification announcing its characterinstics. The device profile attributes can be divided into few groups.
The device identifiers are attributes which uniquely identify the device. Those include: id, clientId, displayName, serialNumber, IMEI, IMSU, ICCID. The device displayName can be updated by the Account administrator.
The device connection information are attributes related to the device connection. Those include: status, lastEventOn, lastEventType, connectionIp, gpsLatitude, gpsLongitude.
The device version information are attributes related to the device model and version information. Those include: modelId, biosVersion, firmwareVersion, osVersion, jvmVersion, osgiFrameworkVersion, esfVersion, applicationIdentifiers.
The value of the device custom attributes 1-5 are set by the system administrator as additional string attributes that can be associated to the device.
All other device attributes are defined as device extended properties.
When loading or searching a device using the Everyware REST APIs, a fetch parameter can be used to control whether the device extended attributes should be loaded and returned.

Example XML

<?xml version="1.0" encoding="UTF-8"?> <device xmlns="http://eurotech.com/edc/2.0"> <accountId>...</accountId> <id>...</id> <clientId>...</clientId> <status>...</status> <connectionStatus>...</connectionStatus> <createdOn>...</createdOn> <createdBy>...</createdBy> <lastEventOn>...</lastEventOn> <lastEventType>...</lastEventType> <displayName>...</displayName> <serialNumber>...</serialNumber> <imei>...</imei> <imsi>...</imsi> <iccid>...</iccid> <modelId>...</modelId> <connectionIp>...</connectionIp> <biosVersion>...</biosVersion> <firmwareVersion>...</firmwareVersion> <osVersion>...</osVersion> <jvmVersion>...</jvmVersion> <osgiFrameworkVersion>...</osgiFrameworkVersion> <esfVersion>...</esfVersion> <applicationIdentifiers>...</applicationIdentifiers> <acceptEncoding>...</acceptEncoding> <gpsLatitude>...</gpsLatitude> <gpsLongitude>...</gpsLongitude> <customAttribute1>...</customAttribute1> <customAttribute2>...</customAttribute2> <customAttribute3>...</customAttribute3> <customAttribute4>...</customAttribute4> <customAttribute5>...</customAttribute5> <optlock>...</optlock> <properties>...</properties> <uptime>...</uptime> <modelName>...</modelName> <partNumber>...</partNumber> <availableProcessors>...</availableProcessors> <totalMemory>...</totalMemory> <os>...</os> <osArch>...</osArch> <jvmName>...</jvmName> <jvmProfile>...</jvmProfile> <osgiFramework>...</osgiFramework> <connectionInterface>...</connectionInterface> <gpsAltitude>...</gpsAltitude> <deviceUserId>...</deviceUserId> <accountName>...</accountName> <signedCertificateId>...</signedCertificateId> <mqttConnectionIp>...</mqttConnectionIp> <credentialsTight>...</credentialsTight> <credentialsAllowChange>...</credentialsAllowChange> <certificateCommonName>...</certificateCommonName> <brokerClusterId>...</brokerClusterId> </device>

Example JSON

{ "accountId" : ..., "id" : "...", "clientId" : "...", "status" : "ENABLED", "connectionStatus" : "CONNECTED", "createdOn" : "...", "createdBy" : ..., "lastEventOn" : "...", "lastEventType" : "CONNECTED", "displayName" : "...", "serialNumber" : "...", "imei" : "...", "imsi" : "...", "iccid" : "...", "modelId" : "...", "connectionIp" : "...", "biosVersion" : "...", "firmwareVersion" : "...", "osVersion" : "...", "jvmVersion" : "...", "osgiFrameworkVersion" : "...", "esfVersion" : "...", "applicationIdentifiers" : "...", "acceptEncoding" : "...", "gpsLatitude" : ..., "gpsLongitude" : ..., "customAttribute1" : "...", "customAttribute2" : "...", "customAttribute3" : "...", "customAttribute4" : "...", "customAttribute5" : "...", "optlock" : ..., "properties" : { "value" : "..." }, "uptime" : ..., "modelName" : "...", "partNumber" : "...", "availableProcessors" : "...", "totalMemory" : "...", "os" : "...", "osArch" : "...", "jvmName" : "...", "jvmProfile" : "...", "osgiFramework" : "...", "connectionInterface" : "...", "gpsAltitude" : ..., "deviceUserId" : ..., "accountName" : "...", "signedCertificateId" : ..., "mqttConnectionIp" : "...", "credentialsTight" : "INHERITED", "credentialsAllowChange" : false, "certificateCommonName" : "...", "brokerClusterId" : ... }