how to call AT command from Custom AT code

danielkim
Posts: 4
Joined: Mon Nov 04, 2024 6:11 am

how to call AT command from Custom AT code

Postby danielkim » Wed Nov 20, 2024 6:44 am

Hello,

I need to call AT command from Custom AT code.

But it shows below respond. it seems that it's not allowed to call AT command during Custom AT works.
busy P...


I'd appreciate it if other workaround is suggested here.


Thanks in advance.
Attachments
customAT.png
customAT.png (25.31 KiB) Viewed 8265 times

esp-at
Espressif staff
Espressif staff
Posts: 335
Joined: Mon May 09, 2022 3:00 am

Re: how to call AT command from Custom AT code

Postby esp-at » Wed Mar 19, 2025 9:01 am

Hi, you cannot execute AT command (at_exe_cmd()) in a command handler (at_exe_cmd_test()).

There is a workaround:
you can create a task, and in that task, call at_exe_cmd() when there is no a new command is executing.

Who is online

Users browsing this forum: Bytespider and 1 guest