A Wireless WEB Server on an ESP8266

This is a short post which shows how to create a wireless WEB server on an ESP8266.  It uses a microcontroller, in this case an STM32F103C8T6 (BluePill )  to send commands and control the ESP8266

Here is what the wiring looks like:.

A Wireless WEB Server on an ESP8266

 

You can get the Fritzing code for this image here.

 

 

 

 

Here is the Arduino IDE source code to load into the STM32F103C8T6 (BluePill) to create a Wireless WEB Server on an ESP8266:

If you open the serial monitor on the Arduino IDE while the code is running you will see the commands being sent to the ESP8266 and its response. You can also watch what comes to its WEB site and what it sends out in return. This can be an interesting learning experience for the beginner.

This is a simple project to make but can be the start of a bigger project or added to another circuit to add wireless capabilities.

2 comments

    • Reza on March 3, 2020 at 9:32 am
    • Reply

    Hi there, thanks for sharing this nice post.

    How can I control GPIO`s of stm32f103c8t6 with ESP8266 via web server?

    1. You’ll need to change the WEB page sent to allow changes to the pin status and then capture that page when it is submitted back. The capture of the data coming back is there already in the code (get_serial_data function).

      The WEB page sent back can be parsed to check for what you want done in the get_serial_data function.

      Sorry I don’t have any examples for specifically parsing the data coming back.

Leave a Reply

Your email address will not be published.