Web Control Panel - Micropython asyncio and dual core web server for Raspberry Pi Pico, ESP32
12.9 هزار بار بازدید -
پارسال
-
In our previous tutorial we
In our previous tutorial we built a web server but the code halted the processor while it waited for the next HTTP request.
In this tutorial I'll show you how to use asynchronous coding with the Asyncio package and dual core processing to build a non blocking web server that will run the HTTP protocol in the background while your microcontroller gets on with its tasks in the foreground.
The asyncio code will work for any microcontroller. The multi core code will need a Raspberry Pi Pico or ESP32 or another board with multiple cores.
Previous tutorials
Connecting WiFi - WiFi Control Your Micropython Project...
Simple Web Server - Add a web control panel to your proje...
Github Code Repository
https://github.com/getis/micropython-...
BytesNBits web page - circuit diagram, etc.
https://bytesnbits.co.uk/web-control-...
0:00 Introduction
2:22 The blocking web server problem
3:56 Asynchronous server with uasyncio
4:50 The demo circuit
8:13 The asyncio code
31:13 Dual core solution
39:11 Combining asyncio and multi core to use all processor resources
In this tutorial I'll show you how to use asynchronous coding with the Asyncio package and dual core processing to build a non blocking web server that will run the HTTP protocol in the background while your microcontroller gets on with its tasks in the foreground.
The asyncio code will work for any microcontroller. The multi core code will need a Raspberry Pi Pico or ESP32 or another board with multiple cores.
Previous tutorials
Connecting WiFi - WiFi Control Your Micropython Project...
Simple Web Server - Add a web control panel to your proje...
Github Code Repository
https://github.com/getis/micropython-...
BytesNBits web page - circuit diagram, etc.
https://bytesnbits.co.uk/web-control-...
0:00 Introduction
2:22 The blocking web server problem
3:56 Asynchronous server with uasyncio
4:50 The demo circuit
8:13 The asyncio code
31:13 Dual core solution
39:11 Combining asyncio and multi core to use all processor resources
پارسال
در تاریخ 1402/01/21 منتشر شده
است.
12,979
بـار بازدید شده