Hello,
I'm using version 3.2.1.0 of ESP-AT: https://github.com/espressif/esp-at/tree/v3.2.1.0.
I see that the lib32_at_core is provided as a library, so I can't modify anything in there. Is there any way to modify the functionality of an existing AT command? Or override an existing command to perform a different action by creating a custom one with the same name?
Thank you
Modified AT commands
Re: Modified AT commands
The AT command override feature was added after 2024.3, and you will need to use version 3.3.0.0 or later.
Re: Modified AT commands
Hi, is there a specific example you can share of how that's done/works, if you don't mind.The AT command override feature was added after 2024.3, and you will need to use version 3.3.0.0 or later.
Also, this is for ESP32 specifically.
Just to give an example, would it be possible to modify/override the AT+RESTORE command to “restore all parameters saved in flash to factory default settings of the module.”, but avoid having it restart the device automatically afterward?
https://espressif-docs.readthedocs-host ... md-restore
Thanks
Re: Modified AT commands
I'm having trouble find any mention of command overrides in versions >= 3.3.0.0. I can see an example of module overrides: https://github.com/espressif/esp-at/tre ... ule_config but that's not what I'm looking for.The AT command override feature was added after 2024.3, and you will need to use version 3.3.0.0 or later.
Re: Modified AT commands
you can see this example:
https://github.com/espressif/esp-at/blo ... stom_cmd.c
Just instead `+TEST` with `+RESTORE`, then AT will execute your AT+RESTORE command.
btw, if you don't restart the module, some configurations will not effect.
About how to reset the parameters, you can extern this API, and call it in `at_exe_cmd_test()`.
https://github.com/espressif/esp-at/blo ... stom_cmd.c
Just instead `+TEST` with `+RESTORE`, then AT will execute your AT+RESTORE command.
btw, if you don't restart the module, some configurations will not effect.
About how to reset the parameters, you can extern this API, and call it in `at_exe_cmd_test()`.
Code: Select all
void at_nvm_restore(void);Re: Modified AT commands
Well, I was just using `AT+RESTORE` as an example. Are you saying that I can create a custom command called `AT+RESTORE` (a core command) and it will use that instead of the standard implementation when I call it?you can see this example:
https://github.com/espressif/esp-at/blo ... stom_cmd.c
Just instead `+TEST` with `+RESTORE`, then AT will execute your AT+RESTORE command.
btw, if you don't restart the module, some configurations will not effect.
About how to reset the parameters, you can extern this API, and call it in `at_exe_cmd_test()`.Code: Select all
void at_nvm_restore(void);
Who is online
Users browsing this forum: No registered users and 1 guest
