Skip to main content

Avnet IoTConnect Lite SDK

Project description

This document is reformatted to better viewing as a standalone document. We recommend visiting this GitHub v1.1.0 link for best experience.

Introduction

This project is the /IOTCONNECT Python Lite Client (SDK) that aims for a modern, intuitive and robust interface to connect your Linux, Windows or MacOS devices to the Avnet IoTConnect platform.

The project supports /IOTCONNECT Device Protocol 2.1 devices. The project requires Python 3.9 or newer and provides a set of features for most common /IOTCONNECT use cases.

If you need support for older Pyton, both Protocol 1.0 and 2.1, Properties (Shadow/Twin) Offline or HTTP Client along with other features like Gateway/Child support you should check out the standard Iotconnect Python SDK repository.

Licensing

This python package is distributed under the MIT License.

Installing

The quickest way to get started with the project is to follow the QUICKSTART.md document.

Using the Client

Using this client to communicate to /IOTCONNECT involves the following steps:

  • Get familiar with the client API by examining documentation at client.py
  • Initialize the client with either:
    • iotcDeviceConfig.json (downloaded from the device Info panel) - see the basic-example
    • Explicit parameters to the constructor - see the minimal example.
  • Optionally, configure your own Client settings (log verbosity, timeouts etc.) and pass those to the constructor.
  • Optionally, pass callbacks for C2D message and OTA (see the basic-example) or even your own custom message handler to the constructor
    • While actual download and application replacement mechanism would depend on how your application runs (via a system service, cron or other method) a simple OTA download and install method is shown in the ota-handling example.
  • Optionally, pass a callback for the MQTT disconnect event and handle it according to your application requirements.
  • Call Client.connect(). The call should block until connected based on timeout retry settings.
  • Call Client.send_telemetry() at regular intervals. Verify that the client is connected with Client.is_connected()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iotconnect_sdk_lite-1.1.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iotconnect_sdk_lite-1.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file iotconnect_sdk_lite-1.1.0.tar.gz.

File metadata

  • Download URL: iotconnect_sdk_lite-1.1.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for iotconnect_sdk_lite-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ff8d1193e992c233f6f5b6fdfbf5e2e1c5a403c9c4a80fe8618542df2e79771b
MD5 1b952589cc7b83dcc1db3b4a1b5fe656
BLAKE2b-256 2b75e32e4b7fe4e48fabdfeccb6207f5e2f824422e68d62ddd01f9197e61bda2

See more details on using hashes here.

File details

Details for the file iotconnect_sdk_lite-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iotconnect_sdk_lite-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef04b4e040d79544683865580dc4c6ec5256d81c171bcb2c5a141f03cd6a8c23
MD5 2d6f7fa187752505ffcc6173f81905aa
BLAKE2b-256 2f7e246da2889fb2de8c7347d1d8b59dd2ac22434ff66108f86cb94a9732d09c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page