TeamViewer IoT Device SDK for Python

barkev
barkev Posts: 12 [Former Staff]
edited April 2023 in IoT Forum

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

General

The TeamViewer IoT Python-SDK is a 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 https://download.teamviewer-iot.com/sdks/python/v1.1.0/teamviewer_iot_python_sdk-1.1.0-py3-none-any.whl

Step 2 - Install dependencies

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

Step 3 - Install the SDK

sudo pip3 install teamviewer_iot_python_sdk-1.1.0-py3-none-any.whl

 Step 4 - Extract Package

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

Step 5 - Run Examples

To run the SDK example, execute the following command:

cd teamviewer_iot_python_sdk
sudo python3 ./examples/create_metric.py