This Tutorial is based on https://controllerstech.com/send-and-receive-data-from-the-webserver-using-stm32
THANKS A LOT FOR SUCH A GREAT TUTORIAL
Here, we will switch 2 LEDs ON / OFF per WiFi
Needed HW:
- STM32F103C8T (Bluepill)
- ESP8266 Wifi
- USB-Uart to PC
- ST-Link V2
Short Overview:
- We use for UART Communication Uart_isr because we use ringbuffer
- We have a Server on STM32 which generates the Webpage
Configuration:
- UART3 goes to WiFI
- UART1 goe to PC
- For both UARTS we use ASYNCHONOUS and global Interrupt enable. Baudrate is set to 115200 Bauds
Functions:
- in "ESP8266_HAL.c" assign your uarts
- in "stm32f1xx_it.c" put isr routines ans comment standard IRQHandler
- in "main.c" function ESP_Init() is trying to access your WLAN-AP. You have to put here your W-Lan and Passwd
Checks:
- If everything works fine you should see in PC UART that we have an access point
- Open in the Browser the IP and you will see follwing screen