TeamViewer IoT Device SDK for Python

Announcements

The board for the TeamViewer Expert Day is open for your questions - Join us here!

Highlighted
Posted by TeamViewer Staff
TeamViewer Staff

TeamViewer IoT Device SDK for Python

This article applies to all TeamViewer IoT users who monitor their IoT network.

General

The TeamViewer IoT Python-SDK is development kit to facilitate integration of sensors to the IoT Agent MQTT API to allow for secure data registration and transfer to your TeamViewer IoT Cloud.

Caution: The Python SDK is currently being provided via IoT Labs for trial purposes as it may not be backwards compatible with future versions. 

 

Download & Installation

Step 1 - Download the SDK

Download the SDK by either Clicking on the link or using the command line:

TeamViewer IoT Python SDK

or

wget http://download.teamviewer-iot.com/sdks/python/v1.0.1/teamviewer_iot_python_sdk-1.0.1-py3-none-any.whl

Step 2 - Install dependencies

The SDK requires the following to be installed on the device:

Step 3 - Install the SDK

pip3 install teamviewer_iot_python_sdk-1.0.1-py3-none-any.whl

 Step 4 - Extract Package

unzip teamviewer_iot_python_sdk-1.0.1-py3-none-any.whl -d teamviewer_iot_python_sdk

Step 5 - Run Examples

To run the SDK example, execute the following commands:

cd teamviewer_iot_python_sdk
python3 ./examples/create_metric.py