Cannot compile custom at command code

retrospect
Posts: 1
Joined: Fri Jan 24, 2025 8:09 am

Cannot compile custom at command code

Postby retrospect » Fri Jan 24, 2025 9:58 am

I have followed the tutorial for creating a custom at command for the esp-at project as described here:

https://docs.espressif.com/projects/esp ... mands.html

However, whenever I run python build.py build (Yes I'm on windows), it does not even compile the c, header and CMakeLists file. How do I get it recognized? I currently use Hercules to test and send the command to the ESP32-C3 directly.
Attachments
at_custom.c
(2.48 KiB) Downloaded 28 times

ferrero
Posts: 15
Joined: Tue Nov 05, 2024 3:11 am

Re: Cannot compile custom at command code

Postby ferrero » Thu Jan 30, 2025 5:38 am

You should add ESP_AT_CMD_SET_INIT_FN(esp_at_custom_cmd_register, 1); into your app_main.
And all your custom files should be added into cmake file of component where this files is placed.
https://docs.espressif.com/projects/esp ... ystem.html

Who is online

Users browsing this forum: No registered users and 4 guests