Hello,
I was wondering, If is it possible to make custom webpage using AT+WEBSERVER command? If it is how?
Context is I am using stm32 connected to esp32-c6. I want to control stm32 or connected to it components using smartphone or pc.
I already did this project, however, using TCP-IP commands where i send html file from stm32 every time when i press button in my webpage which results in refreshing of webserver.
I want to make it interactive without refreshing page and adding javascript if it is possible.
Thank you!
Making custom webserver with AT+WEBSERVER command
-
HellWorker
- Posts: 3
- Joined: Tue Mar 04, 2025 12:32 pm
Re: Making custom webserver with AT+WEBSERVER command
yes, you can do it. However, it requires you to be familiar with web development and AT commands, as well as having the ability to do custom development.
our webserver web page is here: https://github.com/espressif/esp-at/blo ... index.html
you can use AT+FS command to update it.
webserver code is here:
https://github.com/espressif/esp-at/blo ... rver_cmd.c
our webserver web page is here: https://github.com/espressif/esp-at/blo ... index.html
you can use AT+FS command to update it.
webserver code is here:
https://github.com/espressif/esp-at/blo ... rver_cmd.c
-
HellWorker
- Posts: 3
- Joined: Tue Mar 04, 2025 12:32 pm
Re: Making custom webserver with AT+WEBSERVER command
Is there any tips and tricks that i need to know? Everytime when I tried changing webserver code at+webserver command stops working. Unfortunately I couldn't find any source to learn it.
Thank you.
Thank you.
Re: Making custom webserver with AT+WEBSERVER command
Hi! There are no more secrets here, the code is open source. You can add some debug logs to see what exactly is happening. Compare it with the normal code and find the differences.
-
HellWorker
- Posts: 3
- Joined: Tue Mar 04, 2025 12:32 pm
Re: Making custom webserver with AT+WEBSERVER command
Hi, thank you for answer.
I am new to esp32 and embedded systems overall so your response gave me a way to solve this problem. If you have any suggestions where It is better to research this topic I would highly appreciate it.
I am new to esp32 and embedded systems overall so your response gave me a way to solve this problem. If you have any suggestions where It is better to research this topic I would highly appreciate it.
Re: Making custom webserver with AT+WEBSERVER command
1. just make the raw code run and know its workflow.
2. make your code work as the raw code flow.
you can enable debug logs via:
python build.py menuconfig > Component config > Log output > Debug
python build.py menuconfig > Component config > AT > Enable ESP-AT Debug
python build.py menuconfig > Component config > AT > Enable ESP-AT Debug > Logging the data sent from AT to MCU (AT ---> MCU)
python build.py menuconfig > Component config > AT > Enable ESP-AT Debug > Logging the data sent from AT to MCU (AT ---> MCU) > The maximum length of the data sent from AT to MCU to be logged > 8192
python build.py menuconfig > Component config > AT > Enable ESP-AT Debug > Logging the data received by AT from MCU (AT <---- MCU)
python build.py menuconfig > Component config > AT > Enable ESP-AT Debug > Logging the data received by AT from MCU (AT <---- MCU) > The maximum length of the data received by AT from MCU to be logged > 8192
The AT log port output should give more logs.
2. make your code work as the raw code flow.
you can enable debug logs via:
python build.py menuconfig > Component config > Log output > Debug
python build.py menuconfig > Component config > AT > Enable ESP-AT Debug
python build.py menuconfig > Component config > AT > Enable ESP-AT Debug > Logging the data sent from AT to MCU (AT ---> MCU)
python build.py menuconfig > Component config > AT > Enable ESP-AT Debug > Logging the data sent from AT to MCU (AT ---> MCU) > The maximum length of the data sent from AT to MCU to be logged > 8192
python build.py menuconfig > Component config > AT > Enable ESP-AT Debug > Logging the data received by AT from MCU (AT <---- MCU)
python build.py menuconfig > Component config > AT > Enable ESP-AT Debug > Logging the data received by AT from MCU (AT <---- MCU) > The maximum length of the data received by AT from MCU to be logged > 8192
The AT log port output should give more logs.
Who is online
Users browsing this forum: No registered users and 1 guest
