OpenDTU/include
Bernhard Kirchen ebb225f6c0 Fix: avoid deprecated setAuthentication() to fix memory exhaustion
with ESPAsyncWebServer 3.3.0, the setAuthentication() method became
deprecated and a replacement method was provided which acts as a shim
and uses the new middleware-based approach to setup authentication. in
order to eventually apply a changed "read-only access allowed" setting,
the setAuthentication() method was called periodically. the shim
implementation each time allocates a new AuthenticationMiddleware and
adds it to the chain of middlewares, eventually exhausting the memory.

we now use the new middleware-based approach ourselves and only add the
respective AuthenticatonMiddleware instance once to the respective
websocket server instance.

a regression where enabling unauthenticated read-only access is not
applied until reboot is also fixed. all the AuthenticationMiddleware
instances were never removed from the chain of middlewares when calling
setAuthentication("", "").
2024-09-30 15:16:30 +02:00
..
__compiled_constants.h Embed current branch into building process 2024-09-25 21:46:38 +02:00
Configuration.h Feature: Allow custom MQTT Client ID 2024-06-29 00:28:21 +02:00
Datastore.h Move task initialization from init method to constructor 2024-01-20 11:24:57 +01:00
defaults.h Fix: Remove not required semicolon 2024-06-29 00:08:27 +02:00
Display_Graphic_Diagram.h Feature: Added fullscreen diagram to display 2024-01-13 11:31:12 +01:00
Display_Graphic.h Feature: Add support for ST7567 GM12864I-59N Display 2024-01-26 16:05:56 +01:00
helper.h Change License to GPLv2 as the RF24 lib uses GPL-2.0-only 2022-07-15 18:05:58 +02:00
InverterSettings.h Move task initialization from init method to constructor 2024-01-20 11:24:57 +01:00
Led_Single.h Use references instead of pointers whenver possible 2023-12-12 13:26:07 +01:00
MessageOutput.h Move task initialization from init method to constructor 2024-01-20 11:24:57 +01:00
MqttHandleDtu.h Move task initialization from init method to constructor 2024-01-20 11:24:57 +01:00
MqttHandleHass.h MQTT Hass: Implement method to add common metadata to json output 2024-09-24 23:23:08 +02:00
MqttHandleInverter.h Feature: Allow reset of radio statistics via mqtt 2024-09-23 22:46:23 +02:00
MqttHandleInverterTotal.h Move task initialization from init method to constructor 2024-01-20 11:24:57 +01:00
MqttSettings.h Better handling of empty MQTT client id 2024-06-29 11:05:04 +02:00
NetworkSettings.h Rename NetworkEventCb to DtuNetworkEventCb to prevent further upgrade issues 2024-09-27 17:32:28 +02:00
NtpSettings.h Cleanup includes 2022-12-14 22:13:03 +01:00
PinMapping.h Implement W5500 support 2024-09-25 00:37:03 +02:00
README Initial commit 2022-04-09 11:05:14 +02:00
RestartHelper.h Fix: Restart was triggered before all website data was sent 2024-09-23 18:11:52 +02:00
Scheduler.h Initialize TaskScheduler 2023-11-23 22:35:05 +01:00
SunPosition.h Use references instead of pointers whenver possible 2023-12-12 13:26:07 +01:00
Utils.h Fix: Restart was triggered before all website data was sent 2024-09-23 18:11:52 +02:00
W5500.h Added required include to work with IDF 5 2024-09-27 18:30:44 +02:00
WebApi_config.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_device.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_devinfo.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_dtu.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_errors.h Feature: Allow reset of radio statistics via WebApp 2024-09-25 20:18:36 +02:00
WebApi_eventlog.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_firmware.h Fix: Restart was triggered before all website data was sent 2024-09-23 18:11:52 +02:00
WebApi_gridprofile.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_inverter.h Feature: Allow reset of radio statistics via WebApp 2024-09-25 20:18:36 +02:00
WebApi_limit.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_maintenance.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_mqtt.h Feature: Migrated ArduinoJson 6 to 7 2024-04-05 19:14:56 +02:00
WebApi_network.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_ntp.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_power.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_prometheus.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_security.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_sysstatus.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_webapp.h Merge branch 'pr1642' into dev 2024-01-30 20:47:45 +01:00
WebApi_ws_console.h Fix: avoid deprecated setAuthentication() to fix memory exhaustion 2024-09-30 15:16:30 +02:00
WebApi_ws_live.h Fix: avoid deprecated setAuthentication() to fix memory exhaustion 2024-09-30 15:16:30 +02:00
WebApi.h Fix: avoid deprecated setAuthentication() to fix memory exhaustion 2024-09-30 15:16:30 +02:00

This directory is intended for project header files.

A header file is a file containing C declarations and macro definitions
to be shared between several project source files. You request the use of a
header file in your project source file (C, C++, etc) located in `src` folder
by including it, with the C preprocessing directive `#include'.

```src/main.c

#include "header.h"

int main (void)
{
 ...
}
```

Including a header file produces the same results as copying the header file
into each source file that needs it. Such copying would be time-consuming
and error-prone. With a header file, the related declarations appear
in only one place. If they need to be changed, they can be changed in one
place, and programs that include the header file will automatically use the
new version when next recompiled. The header file eliminates the labor of
finding and changing all the copies as well as the risk that a failure to
find one copy will result in inconsistencies within a program.

In C, the usual convention is to give header files names that end with `.h'.
It is most portable to use only letters, digits, dashes, and underscores in
header file names, and at most one dot.

Read more about using header files in official GCC documentation:

* Include Syntax
* Include Operation
* Once-Only Headers
* Computed Includes

https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html