16. API - LTE Stress LED
16.1. Regular Classes
The following classes are intended for general use with the devices they represent. All classes in this section are concrete (not abstract).
16.1.1. LTEStressLED
- class lannerpsp.LTEStressLED(check_platform: bool = False)[source]
LTE Stress LED.
- Parameters:
check_platform (bool) – Set to
True
to check if the platform supports this feature. Defaults toFalse
for better compatibility.- Raises:
PSPNotSupport – This function is not supported (when
check_platform
is set toTrue
).NotImplementedError – It has not been verified to run on this platform (when
check_platform
is set toTrue
).
- off() None [source]
Set the LTE stress LED display mode to off.
Example:
>>> lte_stress_led = LTEStressLED() >>> lte_stress_led.off()
- Raises:
PSPNotOpened – The library is not ready or opened yet.
PSPInvalid – The input parameter is out of range.
PSPNotSupport – This function is not supported.
PSPError – General PSP functional error.
- set_strength(percent: int) None [source]
Set the LTE stress LED signal strength.
Example:
>>> lte_stress_led = LTEStressLED() >>> lte_stress_led.set_strength(87)
- Parameters:
percent (int) – 0 ~ 100 percent of signal strength
- Raises:
TypeError – The input parameters type error.
PSPNotOpened – The library is not ready or opened yet.
PSPInvalid – The input parameter is out of range.
PSPNotSupport – This function is not supported.
PSPError – General PSP functional error.
16.2. Supported Platforms
The following platforms have been verified and confirmed to be supported: