Applications
Develop Python applications
LR54 User Guide
716
Python modules
The LR54 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 LR54:
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:
l
LEDs:
digidevice.led
l
SMS:
digidevice.sms
l
GPS:
digidevice.location
l
Digi Remote Manager:
o
digidevice.datapoint
o
digidevice.device_request
o
digidevice.name
l
Device configuration:
digidevice.config
l
Command line interface:
digidevice.cli
l
Access runtime database:
digidevice.runt
l
Set the maintenance window:
digidevice.maintenance
n
Use the Python
serial
module—
—to access the serial ports.
n
a full Modbus protocol implementation.