Applications
Develop Python applications
LR54 User Guide
715
Develop an application in PyCharm
PyCharm allows you to write, build and run Python applications for Digi devices in a quick and easy
way.
This is what you can do with it:
n
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
code completion features.
n
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
output or execute quick tests.
Manually install and launch an application
To create, build, and launch your application:
1. Write your Python application code. Code can include:
n
Any Python 3.6 standard feature.
n
Access to the LR54 configuration and hardware with the
.
n
Third-party modules included in the LR54, for example:
l
pySerial 3.4
l
PyModbus 2.3
l
Eclipse Paho MQTT Python Client
n
Any other third-party module implemented in Python.
2. Install the application in
/etc/config/scripts
directory.
3. Launch your application:
n
Run your application at the shell prompt
n
Configure your application to run automatically
PyCharm FAQ: My LR54 is not listed in Digi Device Selector
If an LR54 does not appear on the list of the Digi Device Selector:
n
Ensure that your device has the mDNS service enabled and is on the same network as the
computer. See
Set up the LR54 for Python development
n
Or click the link
Click here to add it manually
to specify the IP address, port, username, and
password.
Содержание TransPort LR54
Страница 1: ...LR54 User Guide Firmware version 22 8 ...
Страница 506: ...Virtual Private Networks VPN OpenVPN LR54 User Guide 506 5 Click Apply to save the configuration and apply the change ...
Страница 628: ...Services Simple Network Management Protocol SNMP LR54 User Guide 628 The SNMP page is displayed 4 Click Download ...
Страница 1050: ...Command line interface Execute a command from the web interface LR54 User Guide 1050 The Admin CLI prompt appears ...
Страница 1095: ...Command line interface Command line reference LR54 User Guide 1095 reboot Reboot the system Parameters None ...