HomeGuidesAPI ReferenceChangelog
Log In
API Reference

EdgeDevice

Edge device registered on the platform.

Attributes

NameTypeDescription
edge_device_iduuid.UUIDtechnical id of the edge device.
device_idstrlogical device identifier string.
namestrdisplay name of the edge device.
twin_namestrname of the associated twin.
twin_iduuid.UUIDtechnical id of the associated twin.
statusEdgeDeviceStatuscurrent status of the device.
status_codeintnumeric status code.
device_typeEdgeDeviceTypetype of the edge device.
connection_statestrIoT Hub connection state ('Connected' or 'Disconnected'), enriched from IoT Hub.
last_activity_timestrlast device activity timestamp from IoT Hub.

Methods

api_id()

return current object id on Web API format.

api_key()

return current object logical unique key (e.g. hardware_id, key, name).

returns None if the entity has no logical key.

endpoint()

return endpoint name used to contact backend.

from_json()

load the object from a dict originating of a JSON format.

NameTypeDefaultDescription
objobject to load information from.

set_id()

specify the id_value neutrally

NameTypeDefaultDescription
id_value
return:

to_json()

transform current object into a dict that could be JSONIFY.

NameTypeDefaultDescription
targetstrNone
return: dumpable dict.