OpenDTU-old/include
Bernhard Kirchen 74330a5617 Feature: restart unresponsive inverter
we found that the inverter sometimes stops responding to commands,
especially to the "start producing" command. we now count the number of
consecutive timeouts when trying to send a new limit or power state
commands. after two timeouts were recorded, every additional timeout
will send a restart command to the inverter.

as a last resort, if the counter keeps climbing, the DTU is restarted.

notice that this only targets unresponsive inverters which are
reachable. unreachable inverters are not restarted and do not cause a
DTU reboot. this is important for solar-driven inverters, which are
unreachable during the night. the DPL will not calculate a new limit and
hence the updateInverter() method will do nothing while the target
inverter is unreachable.

publish the timeout counter to MQTT for monitoring purposes.
2024-04-24 16:15:01 +02:00
..
Battery.h polish support for second VE.Direct MPPT charge controller 2024-03-17 16:50:15 +01:00
BatteryStats.h Fix: properly handle fragmented VE.Direct messages 2024-04-02 21:05:59 +02:00
Configuration.h Feature: HTTP power meter: support changing sign 2024-04-18 12:10:29 +02:00
Datastore.h Move task initialization from init method to constructor 2024-01-20 11:24:57 +01:00
defaults.h Feature: DPL: introduce base load setting 2024-04-15 23:02:58 +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
HttpPowerMeter.h Feature: HTTP power meter: support changing sign 2024-04-18 12:10:29 +02:00
Huawei_can.h Feature: BMS initiated emergency charging 2024-04-02 21:05:00 +02:00
InverterSettings.h Move task initialization from init method to constructor 2024-01-20 11:24:57 +01:00
JkBmsController.h polish support for second VE.Direct MPPT charge controller 2024-03-17 16:50:15 +01:00
JkBmsDataPoints.h use frozen::string and frozen::map where reasonable (#593) 2024-01-04 23:28:34 +01:00
JkBmsSerialMessage.h Support for Jikong JK BMS using serial connection (#319) 2023-08-31 16:21:32 +02:00
Led_Single.h merge V23.12.16 (#556) 2023-12-27 11:49:57 +01:00
MessageOutput.h Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development 2024-01-25 23:36:32 +01:00
MqttBattery.h polish support for second VE.Direct MPPT charge controller 2024-03-17 16:50:15 +01:00
MqttHandleBatteryHass.h Feature: JK BMS Home Assistent integration 2024-02-05 21:22:07 +01:00
MqttHandleDtu.h Move task initialization from init method to constructor 2024-01-20 11:24:57 +01:00
MqttHandleHass.h Move task initialization from init method to constructor 2024-01-20 11:24:57 +01:00
MqttHandleHuawei.h clean up Huawei MQTT handler 2023-12-30 18:41:57 +01:00
MqttHandleInverter.h Move task initialization from init method to constructor 2024-01-20 11:24:57 +01:00
MqttHandleInverterTotal.h Move task initialization from init method to constructor 2024-01-20 11:24:57 +01:00
MqttHandlePowerLimiter.h Feature: Set powerlimiter thresholds via MQTT 2024-03-10 22:10:02 +01:00
MqttHandlePowerLimiterHass.h Feature: Set powerlimiter thresholds via MQTT 2024-03-10 22:10:02 +01:00
MqttHandleVedirect.h VE.Direct: simplify access to data 2024-04-02 21:05:59 +02:00
MqttHandleVedirectHass.h VE.Direct: simplify access to data 2024-04-02 21:05:59 +02:00
MqttSettings.h merge V23.12.16 (#556) 2023-12-27 11:49:57 +01:00
NetworkSettings.h merge V23.12.16 (#556) 2023-12-27 11:49:57 +01:00
NtpSettings.h Cleanup includes 2022-12-14 22:13:03 +01:00
PinMapping.h Feature: implement PowerMeter pin config for serial interfaces 2024-03-19 21:27:25 +01:00
PowerLimiter.h Feature: restart unresponsive inverter 2024-04-24 16:15:01 +02:00
PowerMeter.h Feature: DPL: introduce base load setting 2024-04-15 23:02:58 +02:00
PylontechCanReceiver.h polish support for second VE.Direct MPPT charge controller 2024-03-17 16:50:15 +01:00
README Initial commit 2022-04-09 11:05:14 +02:00
Scheduler.h merge V23.12.16 (#556) 2023-12-27 11:49:57 +01:00
SerialPortManager.h polish support for second VE.Direct MPPT charge controller 2024-03-17 16:50:15 +01:00
SMA_HM.h polish SMA HomeManager integration 2024-03-17 20:20:29 +01:00
SunPosition.h merge V23.12.16 (#556) 2023-12-27 11:49:57 +01:00
Utils.h implement and use Utils::checkJsonOverflow() 2024-03-23 17:57:13 +01:00
VictronMppt.h VE.Direct: use float rather than double 2024-04-02 21:05:59 +02:00
VictronSmartShunt.h polish support for second VE.Direct MPPT charge controller 2024-03-17 16:50:15 +01:00
WebApi_battery.h Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development 2024-01-25 23:36:32 +01: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: Support HMS/HMT inverters in different countries with different frequency bands 2024-01-14 16:37:34 +01:00
WebApi_eventlog.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_firmware.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_gridprofile.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_Huawei.h Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development 2024-01-25 23:36:32 +01:00
WebApi_inverter.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01: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 Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01: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_powerlimiter.h DPL settings in web app: split metadata from config 2024-03-23 22:13:50 +01:00
WebApi_powermeter.h reuse power meter's HTTP config struct 2024-04-18 12:10:29 +02: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_vedirect.h Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development 2024-01-25 23:36:32 +01:00
WebApi_webapp.h Merge branch 'pr1642' into dev 2024-01-30 20:47:45 +01:00
WebApi_ws_battery.h Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development 2024-01-25 23:36:32 +01:00
WebApi_ws_console.h Removed not required pointer to AsyncServer instance 2024-01-27 01:09:55 +01:00
WebApi_ws_Huawei.h Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development 2024-01-25 23:36:32 +01:00
WebApi_ws_live.h Feature: live view: update with respective frequency 2024-03-05 11:31:44 +01:00
WebApi_ws_vedirect_live.h VE.Direct: simplify access to data 2024-04-02 21:05:59 +02:00
WebApi.h Merge remote-tracking branch 'tbnobody/OpenDTU/master' into development 2024-01-25 23:36:32 +01: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