7: Action Settings
PremierWave® XN Intelligent Gateway User Guide
73
Using XML
Include in your file:
<configgroup name = "action" instance = "eth0 link
state change">
Include in your file:
<configgroup name = "action" instance = "wlan0 link
state change">
Include in your file:
<configgroup name = "device temperature change"
Include in your file:
<configgroup name = "action" instance = "on scheduled reboot">
Python
Python™ is a dynamic, object-oriented programming language that can be used for developing a
wide range of software applications. The Lantronix PremierWave embedded system on module
includes the installation of Python interpreter, making it easy to load and run custom Python scripts
on your embedded system on module.
The version of Python programming language installed on the Lantronix PremierWave XN
intelligent gateway comes with "batteries included" by having the Python language's standard
library. In addition, the developer can take advantage of thousands of available third party
packages to speed up development.
IDE
Python scripts can be written with any text editor. If using Windows for development, + is
a powerful choice as this text editor includes traditional IDE features such as syntax highlighting
and automatic indentation (
http://notepad-plus-plus.org/
). + also includes the ability to
customize through plugins. Some interesting plugins for the development of Python scripts for the
Lantronix PremierWave XN platform include the following:
PyNPP:
https://github.com/mpcabd/PyNPP
This plugin allows the user to use keystrokes to launch the open Python script in the local
Python interpreter for debugging and testing.
NppFTP:
http://sourceforge.net/projects/nppftp/
This plugin provides a one-click upload of a file to an FTP server. Debugging and testing on
the PremierWave platform easier because PremierWave products have an FTP server
through which to upload files into the file system.