Create And Test A Python Application - Digi TX40 User Manual

Table of Contents

Advertisement

Applications
3. Enable service discovery (mDNS)
a. Click Services > Service Discovery (mDNS).
b. Enable the mDNS service.
Note
For more information, see
4. Configure SSH access
a. Click Services > SSH.
b. Click Enable.
Note
For more information, see the following topics:
authentication, and
5. Enable shell access
a. Click Authentication > Groups > admin.
b. Click the Interactive shell access option.
c. If this option is not displayed, see
6. Click Apply to save the configuration and apply the changes.
The Apply button is located at the top of the WebUI page. You may need to scroll to the top of
the page to locate it.

Create and test a Python application

To develop a Python application for the TX40:
1.
Set up the TX40 for Python
2. Create and test your application with:
PyCharm. You can create, build, and remotely launch your application in the TX40.
n
Your preferred editor and
n
in the TX40.
Develop an application in PyCharm
The Digi IoT PyCharm Plugin allows you to write, build and run Python applications for Digi devices in
a quick and easy way. See the
This is what you can do with it:
Create Python projects from scratch or import one of the available examples.
n
Get help while you write your code thanks to the syntax highlight, quick documentation, and
n
code completion features.
Build and upload Python applications to your Digi device with just one click.
n
Add libraries that facilitate the usage of external peripherals or non-standard APIs.
n
Communicate with your Digi device through the integrated SSH console to see the application
n
output or execute quick tests.
Manually install and launch an application
To create, build, and launch your application:
TX40 User Guide
Enable service discovery
Allow remote access for web administration and
Disable shell
development.
manually transfer the application, install dependencies, and launch
Digi XBee PyCharm IDE Plugin User Guide
Develop Python applications
(mDNS).
Configure SSH
access,
Use SSH with key
SSH.
access.
for details.
777

Advertisement

Table of Contents
loading

Table of Contents