@luckyluzz Dear luckyluzz.I think the easiest way to change mode is AT-COMMAND. YOU can follow the "ESP32 AT Instruction Set and Examples" here.(LINK)