![Digi XGI-20CZ7-E00-W0 User Manual Download Page 81](http://html1.mh-extra.com/html/digi/xgi-20cz7-e00-w0/xgi-20cz7-e00-w0_user-manual_2496341081.webp)
Program XBee Industrial Gateway using
Python
XBee Industrial Gateway Python application and Remote
Manager
Digi XBee Industrial Gateway
81
12. Verify that the
User LED 4 (DS4)
on the XBIB board is now
ON
.
13. Now try to turn the LED off by sending the same request, but changing the value of the
set_
digital_output
command to
high
.
XBee Industrial Gateway Python application configuration file
You can configure some of the XBee Industrial Gateway Python application features using a
configuration file. This configuration file is placed at the same level as the application itself within the
file system and its content is written in JSON format. The file has the following structure:
{
category 1: {
setting 1: value 1
setting 2: value 2
...
setting n: value n
}
category 2: {
setting 1: value 1
setting 2: value 2
...
setting n: value n
...
category n: {
setting 1: value 1
setting 2: value 2
...
setting n: value n
}
}
The first level of the settings structure in this configuration file is the name of the category to which
the settings contained inside belongs. The second level of the structure is the list of settings
contained in the category.
The contents of this configuration file are:
{
"devicecloud": {
"encode serial": true
}
}
The XBee Industrial Gateway Python application provides the following category, with one
configurable setting:
n
devicecloud
l
encode serial:
o
Type
: Boolean
o
Description
: Indicates whether or not the serial data that is sent and stored in Remote
Manager is encoded in base64.
o
Default value
: true