Logo Pico-Framework A web-first embedded framework for C++
Loading...
Searching...
No Matches
framework_config_old.h File Reference

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 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

◆ ENABLE_GPIO_EVENTS

#define ENABLE_GPIO_EVENTS

Definition at line 82 of file framework_config_old.h.

◆ EVENT_QUEUE_LENGTH

#define EVENT_QUEUE_LENGTH   8

Definition at line 27 of file framework_config_old.h.

◆ GPIO_EVENT_HANDLING

#define GPIO_EVENT_HANDLING   GPIO_EVENTS_AND_NOTIFICATIONS

Definition at line 92 of file framework_config_old.h.

◆ GPIO_EVENTS

#define GPIO_EVENTS   2

Definition at line 88 of file framework_config_old.h.

◆ GPIO_EVENTS_AND_NOTIFICATIONS

#define GPIO_EVENTS_AND_NOTIFICATIONS   (GPIO_NOTIFICATIONS | GPIO_EVENTS)

Definition at line 89 of file framework_config_old.h.

◆ GPIO_NOTIFICATIONS

#define GPIO_NOTIFICATIONS   1

Definition at line 87 of file framework_config_old.h.

◆ HTTP_BUFFER_SIZE

#define HTTP_BUFFER_SIZE   1460

Definition at line 76 of file framework_config_old.h.

◆ HTTP_IDLE_TIMEOUT

#define HTTP_IDLE_TIMEOUT   500

Definition at line 73 of file framework_config_old.h.

◆ HTTP_RECEIVE_TIMEOUT

#define HTTP_RECEIVE_TIMEOUT   2000

Definition at line 74 of file framework_config_old.h.

◆ MAX_HTTP_BODY_LENGTH

#define MAX_HTTP_BODY_LENGTH   16 * 1024

Definition at line 70 of file framework_config_old.h.

◆ MULTIPART_UPLOAD_PATH

#define MULTIPART_UPLOAD_PATH   "/uploads"

Definition at line 61 of file framework_config_old.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 24 of file framework_config_old.h.

◆ QUIET_PRINTF

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

Definition at line 102 of file framework_config_old.h.

◆ STREAM_SEND_DELAY_MS

#define STREAM_SEND_DELAY_MS   20

Definition at line 80 of file framework_config_old.h.

◆ TRACE_AppContext

#define TRACE_AppContext   0

Definition at line 113 of file framework_config_old.h.

◆ TRACE_ChunkedDecoder

#define TRACE_ChunkedDecoder   0

Definition at line 114 of file framework_config_old.h.

◆ TRACE_FatFsStorageManager

#define TRACE_FatFsStorageManager   0

Definition at line 115 of file framework_config_old.h.

◆ TRACE_FrameworkApp

#define TRACE_FrameworkApp   0

Definition at line 116 of file framework_config_old.h.

◆ TRACE_FrameworkController

#define TRACE_FrameworkController   0

Definition at line 117 of file framework_config_old.h.

◆ TRACE_FrameworkManager

#define TRACE_FrameworkManager   0

Definition at line 120 of file framework_config_old.h.

◆ TRACE_FrameworkModel

#define TRACE_FrameworkModel   0

Definition at line 118 of file framework_config_old.h.

◆ TRACE_FrameworkTask

#define TRACE_FrameworkTask   0

Definition at line 119 of file framework_config_old.h.

◆ TRACE_HttpClient

#define TRACE_HttpClient   0

Definition at line 121 of file framework_config_old.h.

◆ TRACE_HttpFileserver

#define TRACE_HttpFileserver   0

Definition at line 122 of file framework_config_old.h.

◆ TRACE_HttpParser

#define TRACE_HttpParser   0

Definition at line 123 of file framework_config_old.h.

◆ TRACE_HttpRequest

#define TRACE_HttpRequest   0

Definition at line 124 of file framework_config_old.h.

◆ TRACE_HttpResponse

#define TRACE_HttpResponse   0

Definition at line 125 of file framework_config_old.h.

◆ TRACE_HttpServer

#define TRACE_HttpServer   0

Definition at line 126 of file framework_config_old.h.

◆ TRACE_JsonParser

#define TRACE_JsonParser   0

Definition at line 128 of file framework_config_old.h.

◆ TRACE_JsonRequestHelper

#define TRACE_JsonRequestHelper   0

Definition at line 129 of file framework_config_old.h.

◆ TRACE_JsonService

#define TRACE_JsonService   0

Definition at line 130 of file framework_config_old.h.

◆ TRACE_JwtAuthenticator

#define TRACE_JwtAuthenticator   0

Definition at line 131 of file framework_config_old.h.

◆ TRACE_LEVEL_MIN

#define TRACE_LEVEL_MIN   TRACE_LVL_INFO

Definition at line 144 of file framework_config_old.h.

◆ TRACE_LittleFsStorageManager

#define TRACE_LittleFsStorageManager   0

Definition at line 132 of file framework_config_old.h.

◆ TRACE_LOG_PATH

#define TRACE_LOG_PATH   "/framework_trace.log"

Definition at line 145 of file framework_config_old.h.

◆ TRACE_LwipDnsResolver

#define TRACE_LwipDnsResolver   0

Definition at line 133 of file framework_config_old.h.

◆ TRACE_Middleware

#define TRACE_Middleware   0

Definition at line 127 of file framework_config_old.h.

◆ TRACE_MultipartParser

#define TRACE_MultipartParser   0

Definition at line 134 of file framework_config_old.h.

◆ TRACE_Network

#define TRACE_Network   0

Definition at line 135 of file framework_config_old.h.

◆ TRACE_Router

#define TRACE_Router   0

Definition at line 136 of file framework_config_old.h.

◆ TRACE_Tcp

#define TRACE_Tcp   0

Definition at line 137 of file framework_config_old.h.

◆ TRACE_TimeManager

#define TRACE_TimeManager   0

Definition at line 139 of file framework_config_old.h.

◆ TRACE_USE_SD

#define TRACE_USE_SD   0

Definition at line 108 of file framework_config_old.h.

◆ TRACE_USE_TIMESTAMP

#define TRACE_USE_TIMESTAMP   1

Definition at line 107 of file framework_config_old.h.

◆ TRACE_utility

#define TRACE_utility   0

Definition at line 138 of file framework_config_old.h.

◆ WIFI_MAX_RETRIES

#define WIFI_MAX_RETRIES   5

Definition at line 38 of file framework_config_old.h.

◆ WIFI_MONITOR_INTERVAL_MS

#define WIFI_MONITOR_INTERVAL_MS   30000

Definition at line 52 of file framework_config_old.h.

◆ WIFI_REBOOT_ON_FAILURE

#define WIFI_REBOOT_ON_FAILURE   false

Definition at line 46 of file framework_config_old.h.

◆ WIFI_RETRY_TIMEOUT_MS

#define WIFI_RETRY_TIMEOUT_MS   15000

Definition at line 33 of file framework_config_old.h.