device package

Azure IoT Device Library

This library provides clients and associated models for communicating with Azure IoT services from an IoT device.

Packages

aio

Azure IoT Device Library - Asynchronous

This library provides asynchronous clients for communicating with Azure IoT services from an IoT device.

Classes

IoTHubDeviceClient

A synchronous device client that connects to an Azure IoT Hub instance.

Intended for usage with Python 2.7 or compatibility scenarios for Python 3.5.3+.

IoTHubModuleClient

A synchronous module client that connects to an Azure IoT Hub or Azure IoT Edge instance.

Intended for usage with Python 2.7 or compatibility scenarios for Python 3.5.3+.

Message

Represents a message to or from IoTHub

InboxEmpty
MethodResponse

Represents a response to a direct method.

ProvisioningDeviceClient

Client which can be used to run the registration of a device with provisioning service using Symmetric Key authentication.

RegistrationResult

The final result of a completed or failed registration attempt :ivar:request_id: The request id to which the response is being obtained :ivar:operation_id: The id of the operation as returned by the registration request. :ivar status: The status of the registration process as returned by the provisioning service. Values can be "unassigned", "assigning", "assigned", "failed", "disabled" :ivar registration_state : Details like device id, assigned hub , date times etc returned from the provisioning service.