Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
FrameworkManager.h
Go to the documentation of this file.
1
18#ifndef FRAMEWORK_MANAGER_H
19#define FRAMEWORK_MANAGER_H
20#pragma once
21
22#include "FreeRTOS.h"
23#include "task.h"
24#include "network/Network.h"
26
27#define NETWORK_STACK_SIZE 2048 / sizeof(StackType_t)
28#define APPLICATION_STACK_SIZE 1024 / sizeof(StackType_t)
29
30class FrameworkApp;
31
39{
40public:
47
48
49private:
51 TaskHandle_t networkTaskHandle;
52 TaskHandle_t applicationTaskHandle;
53
55
59 static void app_task(void *params);
60
70
77 void onStart();
78
79 void warmUp();
80
88 void poll();
89
95 void onEvent(const Event& event);
96};
97
98#endif // FRAMEWORK_MANAGER_H
The FrameworkController class for event-driven control logic in embedded applications.
Manages Wi-Fi initialization, connection status, and power management for Pico W.
Base class for applications using the framework.
Base class for event-driven control logic in embedded applications.
Router & router
Handles path-to-handler mapping - reference to shared Router instance.
Starts and coordinates core system services like networking and time sync.
void onEvent(const Event &event)
Handles events posted to the FrameworkManager.
TaskHandle_t applicationTaskHandle
(Unused) optional handle for app task
TaskHandle_t networkTaskHandle
Handle for the network task.
void poll()
Polling function for the FrameworkManager.
FrameworkApp * app
Pointer to the application task.
void setupTraceFromConfig()
Sets up debug tracing from configuration.
static void app_task(void *params)
Placeholder for an application-level task, if used.
void onStart()
Initializes the network and application tasks.
Network network
Network management.
Static class providing Wi-Fi and network control on the Pico W.
Definition Network.h:27
The central router for handling HTTP requests and middleware.
Definition Router.h:60
Represents a framework event, optionally carrying payload data.
Definition Event.h:24