Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
framework_config_system.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NTP_TIMEOUT_SECONDS   15
 This setting defines the retry timeout The default SNTP retry time is 15 seconds, we set it to 5 in lwipopts.h.
 
#define DETECT_LOCAL_TIMEZONE   0
 Set to 1 to enable timezone detection, 0 to disable.
 
#define EVENT_QUEUE_LENGTH   8
 
#define WIFI_RETRY_TIMEOUT_MS   15000
 This setting defines the retry timeout for WiFi connection The default is 15000 ms (15 seconds)
 
#define WIFI_MAX_RETRIES   5
 This setting defines the maximum number of retries for WiFi connection.
 
#define WIFI_REBOOT_ON_FAILURE   false
 This setting defines whether to reboot the device on WiFi connection failure The default is false, meaning the device will not reboot on failure If set to true, the device will reboot after the maximum number of retries This is used by the FrameworkManager class.
 
#define WIFI_MONITOR_INTERVAL_MS   30000
 This setting defines the interval for checking WiFi connection status The default is 30000 ms (30 seconds) This is used by the Network class to monitor WiFi connection status.
 
#define MULTIPART_UPLOAD_PATH   "/uploads"
 This setting defines where uploads go The default is "/uploads" This is used by the MultipartParser class.
 
#define MAX_HTTP_BODY_LENGTH   16 * 1024
 Maximum HTTP body size in bytes.
 
#define HTTP_IDLE_TIMEOUT   500
 Timeout for idle HTTP connections in milliseconds.
 
#define HTTP_RECEIVE_TIMEOUT   2000
 Timeout for receiving HTTP data in milliseconds.
 
#define HTTP_BUFFER_SIZE   1460
 Size of the HTTP buffer for request/response data.
 
#define STREAM_SEND_DELAY_MS   20
 
#define ENABLE_GPIO_EVENTS
 Set to enable GPIO event handling, don't define to disable.
 
#define GPIO_NOTIFICATIONS   1
 
#define GPIO_EVENTS   2
 
#define GPIO_EVENTS_AND_NOTIFICATIONS   (GPIO_NOTIFICATIONS | GPIO_EVENTS)
 
#define GPIO_EVENT_HANDLING   GPIO_EVENTS_AND_NOTIFICATIONS
 
#define QUIET_PRINTF(...)   printf(__VA_ARGS__)
 
#define TRACE_USE_TIMESTAMP   1
 
#define TRACE_USE_SD   0
 Set to 1 to use SD card for trace output, 0 for UART.
 
#define TRACE_AppContext   0
 
#define TRACE_ChunkedDecoder   0
 
#define TRACE_FatFsStorageManager   0
 
#define TRACE_FrameworkApp   0
 
#define TRACE_FrameworkController   0
 
#define TRACE_FrameworkModel   0
 
#define TRACE_FrameworkTask   0
 
#define TRACE_FrameworkManager   0
 
#define TRACE_HttpClient   0
 
#define TRACE_HttpFileserver   0
 
#define TRACE_HttpParser   0
 
#define TRACE_HttpRequest   0
 
#define TRACE_HttpResponse   0
 
#define TRACE_HttpServer   0
 
#define TRACE_Middleware   0
 
#define TRACE_JsonParser   0
 
#define TRACE_JsonRequestHelper   0
 
#define TRACE_JsonService   0
 
#define TRACE_JwtAuthenticator   0
 
#define TRACE_LittleFsStorageManager   0
 
#define TRACE_LwipDnsResolver   0
 
#define TRACE_MultipartParser   0
 
#define TRACE_Network   0
 
#define TRACE_Router   0
 
#define TRACE_Tcp   0
 
#define TRACE_utility   0
 
#define TRACE_TimeManager   0
 
#define TRACE_LEVEL_MIN   TRACE_LVL_INFO
 
#define TRACE_LOG_PATH   "/framework_trace.log"
 

Macro Definition Documentation

◆ DETECT_LOCAL_TIMEZONE

#define DETECT_LOCAL_TIMEZONE   0

Definition at line 30 of file framework_config_system.h.

◆ ENABLE_GPIO_EVENTS

#define ENABLE_GPIO_EVENTS

Definition at line 113 of file framework_config_system.h.

◆ EVENT_QUEUE_LENGTH

#define EVENT_QUEUE_LENGTH   8

Definition at line 34 of file framework_config_system.h.

◆ GPIO_EVENT_HANDLING

#define GPIO_EVENT_HANDLING   GPIO_EVENTS_AND_NOTIFICATIONS

Definition at line 130 of file framework_config_system.h.

◆ GPIO_EVENTS

#define GPIO_EVENTS   2

Definition at line 123 of file framework_config_system.h.

◆ GPIO_EVENTS_AND_NOTIFICATIONS

#define GPIO_EVENTS_AND_NOTIFICATIONS   (GPIO_NOTIFICATIONS | GPIO_EVENTS)

Definition at line 126 of file framework_config_system.h.

◆ GPIO_NOTIFICATIONS

#define GPIO_NOTIFICATIONS   1

Definition at line 120 of file framework_config_system.h.

◆ HTTP_BUFFER_SIZE

#define HTTP_BUFFER_SIZE   1460

Definition at line 103 of file framework_config_system.h.

◆ HTTP_IDLE_TIMEOUT

#define HTTP_IDLE_TIMEOUT   500

Definition at line 96 of file framework_config_system.h.

◆ HTTP_RECEIVE_TIMEOUT

#define HTTP_RECEIVE_TIMEOUT   2000

Definition at line 99 of file framework_config_system.h.

◆ MAX_HTTP_BODY_LENGTH

#define MAX_HTTP_BODY_LENGTH   16 * 1024

Definition at line 91 of file framework_config_system.h.

◆ MULTIPART_UPLOAD_PATH

#define MULTIPART_UPLOAD_PATH   "/uploads"

Definition at line 78 of file framework_config_system.h.

◆ NTP_TIMEOUT_SECONDS

#define NTP_TIMEOUT_SECONDS   15

This setting defines how long we wait for SNTP sync This is used by the TimeManager class

Definition at line 26 of file framework_config_system.h.

◆ QUIET_PRINTF

#define QUIET_PRINTF (   ...)    printf(__VA_ARGS__)

Definition at line 143 of file framework_config_system.h.

◆ STREAM_SEND_DELAY_MS

#define STREAM_SEND_DELAY_MS   20

Definition at line 109 of file framework_config_system.h.

◆ TRACE_AppContext

#define TRACE_AppContext   0

Definition at line 160 of file framework_config_system.h.

◆ TRACE_ChunkedDecoder

#define TRACE_ChunkedDecoder   0

Definition at line 163 of file framework_config_system.h.

◆ TRACE_FatFsStorageManager

#define TRACE_FatFsStorageManager   0

Definition at line 166 of file framework_config_system.h.

◆ TRACE_FrameworkApp

#define TRACE_FrameworkApp   0

Definition at line 169 of file framework_config_system.h.

◆ TRACE_FrameworkController

#define TRACE_FrameworkController   0

Definition at line 172 of file framework_config_system.h.

◆ TRACE_FrameworkManager

#define TRACE_FrameworkManager   0

Definition at line 181 of file framework_config_system.h.

◆ TRACE_FrameworkModel

#define TRACE_FrameworkModel   0

Definition at line 175 of file framework_config_system.h.

◆ TRACE_FrameworkTask

#define TRACE_FrameworkTask   0

Definition at line 178 of file framework_config_system.h.

◆ TRACE_HttpClient

#define TRACE_HttpClient   0

Definition at line 184 of file framework_config_system.h.

◆ TRACE_HttpFileserver

#define TRACE_HttpFileserver   0

Definition at line 187 of file framework_config_system.h.

◆ TRACE_HttpParser

#define TRACE_HttpParser   0

Definition at line 190 of file framework_config_system.h.

◆ TRACE_HttpRequest

#define TRACE_HttpRequest   0

Definition at line 193 of file framework_config_system.h.

◆ TRACE_HttpResponse

#define TRACE_HttpResponse   0

Definition at line 196 of file framework_config_system.h.

◆ TRACE_HttpServer

#define TRACE_HttpServer   0

Definition at line 199 of file framework_config_system.h.

◆ TRACE_JsonParser

#define TRACE_JsonParser   0

Definition at line 205 of file framework_config_system.h.

◆ TRACE_JsonRequestHelper

#define TRACE_JsonRequestHelper   0

Definition at line 208 of file framework_config_system.h.

◆ TRACE_JsonService

#define TRACE_JsonService   0

Definition at line 211 of file framework_config_system.h.

◆ TRACE_JwtAuthenticator

#define TRACE_JwtAuthenticator   0

Definition at line 214 of file framework_config_system.h.

◆ TRACE_LEVEL_MIN

#define TRACE_LEVEL_MIN   TRACE_LVL_INFO

Definition at line 245 of file framework_config_system.h.

◆ TRACE_LittleFsStorageManager

#define TRACE_LittleFsStorageManager   0

Definition at line 217 of file framework_config_system.h.

◆ TRACE_LOG_PATH

#define TRACE_LOG_PATH   "/framework_trace.log"

Definition at line 248 of file framework_config_system.h.

◆ TRACE_LwipDnsResolver

#define TRACE_LwipDnsResolver   0

Definition at line 220 of file framework_config_system.h.

◆ TRACE_Middleware

#define TRACE_Middleware   0

Definition at line 202 of file framework_config_system.h.

◆ TRACE_MultipartParser

#define TRACE_MultipartParser   0

Definition at line 223 of file framework_config_system.h.

◆ TRACE_Network

#define TRACE_Network   0

Definition at line 226 of file framework_config_system.h.

◆ TRACE_Router

#define TRACE_Router   0

Definition at line 229 of file framework_config_system.h.

◆ TRACE_Tcp

#define TRACE_Tcp   0

Definition at line 232 of file framework_config_system.h.

◆ TRACE_TimeManager

#define TRACE_TimeManager   0

Definition at line 238 of file framework_config_system.h.

◆ TRACE_USE_SD

#define TRACE_USE_SD   0

Definition at line 153 of file framework_config_system.h.

◆ TRACE_USE_TIMESTAMP

#define TRACE_USE_TIMESTAMP   1

Definition at line 150 of file framework_config_system.h.

◆ TRACE_utility

#define TRACE_utility   0

Definition at line 235 of file framework_config_system.h.

◆ WIFI_MAX_RETRIES

#define WIFI_MAX_RETRIES   5

Definition at line 49 of file framework_config_system.h.

◆ WIFI_MONITOR_INTERVAL_MS

#define WIFI_MONITOR_INTERVAL_MS   30000

Definition at line 67 of file framework_config_system.h.

◆ WIFI_REBOOT_ON_FAILURE

#define WIFI_REBOOT_ON_FAILURE   false

Definition at line 59 of file framework_config_system.h.

◆ WIFI_RETRY_TIMEOUT_MS

#define WIFI_RETRY_TIMEOUT_MS   15000

Definition at line 42 of file framework_config_system.h.