![Digi XGI-20CZ7-E00-W0 Скачать руководство пользователя страница 55](http://html1.mh-extra.com/html/digi/xgi-20cz7-e00-w0/xgi-20cz7-e00-w0_user-manual_2496341055.webp)
Program XBee Industrial Gateway using Python
Find Python learning resources
Digi XBee Industrial Gateway
55
Find Python learning resources
You can learn more about programming with Python by referring to the following sections.
Digi Python Programmer's Guide
The
Digi Python Programmer’s Guide
on the Digi Wiki for Developers introduces the Python
programming language by showing how to create and run a simple Python program. It reviews Python
modules, particularly those with Digi-specific behavior, and describes how to load and run Python
programs onto Digi devices, and run sample Python programs.
Python support forum
You can find answers to common questions and exchange ideas and examples with other members of
the Digi Python development community at the
.
Digi Wiki for Developers
The
provides references for developing solutions using the Digi
communications portfolio, software and services, including Python, Remote Manager, DIA, and more.
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.
Digi-specific Python modules for programming
Several Digi-provided built-in modules apply to functionality in XBee Industrial Gateway and are
documented on the
ConnectPort X2e developer Wiki
. From that page, you can go to the information
pages on these modules:
n
digihw
: Provides an interface to local hardware.
n
idigimsg
: This is an internal module with functions used by DIA and Smart Energy Framework.
n
rci
: Provides a mechanism for processing arbitrary RCI request strings, as well as a means to
set up callbacks to allow Python scripts to respond to remote requests made via specialized
RCI commands.
n
uptime
: Allows access to the Linux
gettime
function for various clocks.
n
watchdog
: A safeguard that an application can use for critical operations, in which, if the
application threads do not service their watchdog within the promised interval, the entire
system reboots.
n
xbee
: A collection of utility methods for programming the XBee RF module on XBee Industrial
Gateway. It also includes the Python XBee socket interface support.
Sample programs
These simple annotated samples introduce several programmable features for XBee Industrial
Gateway, including:
n
n
Содержание XGI-20CZ7-E00-W0
Страница 1: ...Digi XBee Industrial Gateway User Guide...