Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32F103C8 Webserver Taking Serial WiFi input from ESP8266 AT Command #2

Open
ceewanna opened this issue Apr 11, 2024 · 1 comment

Comments

@ceewanna
Copy link

I am looking for a webserver library to be used for STM32F103C8 under Arduino platform. I have had it serially communicating with ESP8266/ESP-01S via Serial2. I tested by calling its IP address and there was http text going into Serial2 like this.

+IPD,0,366:GET /test/gpio?sensitivity=2.2 HTTP/1.1
Host: 192.168.1.185
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Connection: keep-alive
Upgrade-Insecure-Requests: 1

There are a few resources on the internet write code to take the above further but I think it would be better to have a proper library for that. What I learnt was we would extract uri/url from GET and process accordingly.

I have looked into Arduino's ESP8266WebServer but it's way to too complicated for me. The other resource https://github.com/khoih-prog/ESP8266_AT_WebServer seems to good but somehow didn't work with incomplete code or errors on some memcpy.

So essentially I wonder if your webserver could be adopted for my work. I am no expert in webserver but just know some basic coding. I still have no idea how those serial text will be fed to a webserver library.

@surfskidude
Copy link

The Minnow Server is a WebSocket server, and you would need to learn how to design an SPA. My recommendation is to use an ESP32-S3 as the main CPU or coprocessor. You can then use the much easier-to-use Xedge32:
https://realtimelogic.com/downloads/bas/ESP32/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants