"I am using the RAK3172 with an ESP32 over UART1 (Serial1). If I accidentally set the AT+LPMLVL mode to ‘2’, UART1 will be disabled. I want to double-check this in the setup() function to prevent any UART1 connection problems by setting AT+LPMLVL=1. However, the RUI3 API might not have a direct equivalent function for this. I only found a function to turn LPM on or off:
There is no command to select the level in the API. You set it once with an AT command.
The only API calls for it are api.system.lpm.set(1) to enable low power mode and api.system.lpm.set(0) to disable it.