Example: Set The Lte Connection Indicator To Flashing Purple - Digi IX20W-PR User Manual

Table of Contents

Advertisement

Applications

Example: Set the LTE connection indicator to flashing purple

1. At the shell prompt, use the python command with no parameters to enter an interactive
Python session:
# python
Python 3.10.1 (main, Mar 30 2023, 23:47:13) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
2. Import the led submodule:
>>> from digidevice import led
3. Import the Led and State objects from the led submodule:
>>> from digidevice.led import Led, State
4. Use led.acquire() to gain control of the all LEDs:
>>> led.acquire(Led.ALL)
5. Use led.set() to set the state of the Led.COM and Led.ONLINE to FLASH:
>>> led.set(Led.COM, State.FLASH)
>>> led.set(Led.ONLINE, State.FLASH)
6. Set the state of the Led.ETH to OFF:
>>> led.set(Led.ETH, State.OFF)
7. (Optional) Use led.release() to release the LEDs to system control:
>>> led.release(Led.ALL)
8. Use Ctrl-D to exit the Python session. You can also exit the session using exit() or quit().
Use Python to send and receive SMS messages
You can create Python scripts that send and receive SMS message in tandem with the Digi Remote
Manager by using the digidevice.sms module. To use a script to send or receive SMS messages, you
must also enable the ability to schedule SMS scripting.
Enable the ability to schedule SMS scripting
Web
1. Log into Digi Remote Manager, or log into the local Web UI as a user with full Admin access
rights.
2. Access the device configuration:
Remote Manager:
IX20 User Guide
Use Python to control the color of multi-colored LEDs
833

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ix20Ix20wIx20-pr

Table of Contents