Python Modules - Digi TX40 User Manual

Table of Contents

Advertisement

Applications
6. Type exit to exit the Admin CLI.
Depending on your device configuration, you may be presented with an Access selection
menu. Type quit to disconnect from the device.

Python modules

The TX40 supports Python 3.6 and provides you with the ability to run Python applications on the
device interactively or from a file. It also offers extensions to manage your TX40:
n
The digidevice module provides platform-specific extensions that allow you to interact with
the device's configuration and interfaces.
The following submodules are included with the digidevice module:
LEDs: digidevice.led
l
SMS: digidevice.sms
l
GPS: digidevice.location
l
Digi Remote Manager:
l
o
digidevice.datapoint
o
digidevice.device_request
o
digidevice.name
Device configuration: digidevice.config
l
Command line interface: digidevice.cli
l
Access runtime database: digidevice.runt
l
Set the maintenance window: digidevice.maintenance
l
n
Use the Python serial module—pySerial— to access the serial ports.
n
Eclipse Paho MQTT Python client
publish messages, and to subscribe to topics and receive published messages.
Note
Module-related documentation is in the
Digidevice module
The Python digidevice module provides platform-specific extensions that allow you to interact with
the device's configuration and interfaces. The following submodules are included with the digidevice
module:
This section contains the following topics:
TX40 User Guide
enables applications to connect to an
Digidevice module
section.
Develop Python applications
MQTT
broker to
781

Advertisement

Table of Contents
loading

Table of Contents