![Digi 70002405 Скачать руководство пользователя страница 117](http://html.mh-extra.com/html/digi/70002405/70002405_user-manual_2496566117.webp)
Configure the device using the ConnectPort LTS web interface
Applications pages
Digi ConnectPort LTS User Guide
117
Python Files
The Python Files page allows you to upload and manage Python programs on a ConnectPort LTS
device.
n
Upload Files
: Click
Choose File
to select a file to upload and click
Upload
.
n
Manage Files
: Select any files to remove from the ConnectPort LTS device and click
Delete
.
Auto-start settings
Use the
Auto-start Settings
page to configure Python programs to execute when the ConnectPort
LTS device boots. You can configure up to four auto-start entries.
n
Enable:
When selected, the program specified in the Auto-start command line field runs when
the device boots.
n
Auto-start command line:
Specify the name of a Python program file to be executed and any
arguments to pass to the program using the following syntax:
filename [arg1 arg2...]
Manually execute uploaded Python programs
To manually execute an uploaded Python program on a ConnectPort LTS device:
n
Access the Digi device command-line interface and type the following command:
python
filename [arg1arg2...]
View and manage Python programs
To view Python threads running on the ConnectPort LTS device:
n
Access the Digi device command-line interface and type the
who
command.
Python program management and programming resources
Digi incorporates a Python development environment into ConnectPort LTS devices. Digi integration of
the universal Python programming language allows customers an open standard for complete control
of connections to devices, the manipulation of data, and event-based actions.
Recommended distribution of Python interpreter
The current version of the Python interpreter embedded in Digi devices is 2.6.2. Use modules known
to be compatible with this version of the Python language only.
Digi Wiki for Developers
Digi Wiki for Developers is where you can learn how to develop solutions using Digi's communications
products, software and services. The wiki includes how-to's, example code, and M2M information to
speed application development. Digi encourages an active developer community and welcomes your
contributions.
www.digi.com/wiki/developer/index.php/Main_Page
Digi Python Programmer's Guide
The
Digi Python Programmer's Guide
introduces the Python programming language by showing how to
create and run a simple Python program. It reviews Python modules, particularly those with Digi-
Содержание 70002405
Страница 1: ...ConnectPort LTS User Guide ...