How milosz275/pico-realtime-webserver works
Project Type and Purpose
• The project is an embedded, full-stack real-time web server designed specifically for the Raspberry Pi Pico W.
• It leverages FreeRTOS Kernel for real-time task management along with a lightweight webserver capability.
• The server handles both static file serving (HTML/SSI files found in src/fs) and dynamic content via CGI/SSI mechanisms, along with simple authentication features.
• Dependencies such as pico-sdk, pico-extras, and the freertos-kernel are integrated as submodules, indicating a tightly coupled embedded environment.
Analyzing the File Structure
• Top-Level Directories:
• “include”: Contains all header files (e.g., FreeRTOSConfig.h, cgi.h, lwipopts.h, realtime_webserver.h) that define configurations and interfaces.
• “lib”: Holds submodules and dependencies like freertos-kernel, pico-sdk, and pico-extras.
• “src”: Contains the application source code including main.c and modules for CGI, realtime webserver operations, SSI, and state management.
• “assets”: Likely stores the project’s logo and other static assets used for documentation or UI assets.
• “cmake” and “CMakeLists.txt”: Denote a CMake-based build system, which is supported by GitHub workflow files for CMake builds, CodeQL checks, and Doxygen documentation.
• Build and Configuration:
• The presence of “build.sh” and CMake configurations indicate an automated build process that generates a UF2 file for flashing onto the Pico W.
• The README also indicates that a wifi_credentials.h (to be created by the user) is required for network configuration.