2206 Commits

Author SHA1 Message Date
Thomas Basler
935ef6fcd1 Fix: Prevent unpredicted behavior on overflows of millis() 2025-05-04 16:17:23 +02:00
Thomas Basler
9d0de8d2ca Replace all print and println with printf in startup code 2025-05-04 16:17:23 +02:00
Thomas Basler
39b8d3f43f Implement Wifi reconnect watchdog
Sometimes the ESP does not trigger the ARDUINO_EVENT_WIFI_STA_DISCONNECTED when a disconnect occours. In this case, no further reconnect attempt is done. To take care of this behavior, the wifi hardware is reset when no connect occours within 60 seconds..
2025-05-04 16:17:23 +02:00
Thomas Basler
ec614b3132 Move disableAdminMode to separate method 2025-05-04 16:16:38 +02:00
Thomas Basler
ed9d4cc65d Fix: When enabling admin mode, the search for the STA was automatically disabled 2025-05-04 16:16:38 +02:00
Thomas Basler
818133e866 Wifi connection is only established when IP is set and the stack reports connected 2025-05-04 16:16:38 +02:00
Thomas Basler
6b3decf397 Fix possible race condition when enabling Admin Mode AP 2025-05-04 16:16:38 +02:00
Thomas Basler
52961ed5a6 InverterSettings: Optimize init function
Also replace all print and println by printf
2025-05-04 16:16:38 +02:00
Thomas Basler
6c4d3f47c7 NetworkSettings: Optimize loop function
Also replace all print and println by printf
2025-05-04 16:16:38 +02:00
Thomas Basler
f490e4af4b NetworkSettings: Optimize handleMDNS function
Also replace all print and println by printf
2025-05-04 16:16:38 +02:00
Thomas Basler
650f33f7f7 NetworkSettings: Optimize setStaticIp function
Also replace all print and println by printf
2025-05-04 16:16:38 +02:00
Thomas Basler
b911ba09a4 NetworkSettings: Optimize applyConfig function
Also replace all print and println by printf
2025-05-04 16:16:38 +02:00
Thomas Basler
852649fd86 NetworkSettings: Optimize setHostname function
Also replace all print and println by printf
2025-04-18 11:00:13 +02:00
Thomas Basler
0dcf3c5902 NetworkSettings: Replace println by printf 2025-04-18 11:00:13 +02:00
Thomas Basler
9735deae44 Configuration: Replace print and println with printf 2025-04-18 11:00:13 +02:00
Thomas Basler
3572f177fa MqttHandleInverter: Replace all print and println with printf 2025-04-18 11:00:13 +02:00
Thomas Basler
5cb7fcd854 MqttSettings: Replace all print and println with printf 2025-04-18 11:00:13 +02:00
Thomas Basler
7f922f849a Pinmapping: Remove println output 2025-04-18 11:00:13 +02:00
Thomas Basler
86e5aa1576 Hoymiles Lib: Return command string directly instead of printing it to a stream 2025-04-18 11:00:13 +02:00
Thomas Basler
613f8ab5a6 Hoymiles Lib: Use pre-rendered serial number 2025-04-18 11:00:13 +02:00
Thomas Basler
e71796d451 Hoymiles Lib: Move array dumping methods in separate method 2025-04-18 11:00:13 +02:00
Thomas Basler
cb1ecd812c Hoymiles Lib: Replace lot of println by printf 2025-04-18 11:00:13 +02:00
Thomas Basler
3addcc2758 Use more thread save Message Output
Thanks to OnBattery!
2025-04-18 11:00:13 +02:00
Thomas Basler
82985d0bb2 Remove outdated screenshots as they are available in the official documentation as well 2025-04-10 18:48:31 +02:00
Thomas Basler
163a32154c Fix typo 2025-04-10 18:45:36 +02:00
Thomas Basler
5019e8e64f Show git branch name in system info
Thanks to OnBattery
2025-04-10 18:40:59 +02:00
Thomas Basler
f0db2a51da webapp: add app.js.gz v25.4.10 2025-04-10 18:18:35 +02:00
Thomas Basler
897dad39a6 Give reconnect more time
Try to fix maybe unresponseable APs
2025-04-10 18:17:21 +02:00
Thomas Basler
b88b66a42a webapp: Update dependencies 2025-04-10 18:16:50 +02:00
Thomas Basler
542e755c64 Remove not required parameters from MqttSubscribeParser
index and total are only required to handle different payload fragments. This is not done here. In a further step, the correct fragment handling will be implemented outside this library.
2025-04-09 19:36:46 +02:00
Thomas Basler
1f3f275689 Use correct signature for getMaxResendCount 2025-04-09 18:48:09 +02:00
Thomas Basler
f1efe21ba3 Make setLed method compatible with Arduino Framework 3 2025-04-09 18:44:05 +02:00
Thomas Basler
7e056ad3f9 Use the right format string on a lot of locations
This helps for a future support of arduino framework 3
2025-04-09 18:33:47 +02:00
Thomas Basler
80fb8c70f5 Slight optimization in bug report template 2025-04-09 17:39:05 +02:00
Thomas Basler
b70af57bd2 Merge branch 'pr2633' into dev 2025-04-09 17:15:54 +02:00
Peter Lieven
e6e1f3a42a feat(WebApi_prometheus.cpp): dynamically adjust the initial response buffer size
the current implementation allocates a 40kB buffer right from the start.
In most cases this is way too big. This patch dynamically learns the right
required size for the local setup and preallocates just as much space as needed.

Signed-off-by: Peter Lieven <pl@dlhnet.de>
2025-04-08 20:18:53 +00:00
Peter Lieven
e8a2d09906 fix: bump ESPAsyncWebServer to v3.7.6
after OpenDTU v24.9.30 was released there was a subtle change in the ESPAsyncWebServer
which changed the internal data structure for AsyncResponseStream from cbuf to StringStream.
This introduced WDT resets when scraping at least the prometheus API endpoint [1].
ESPAsyncWebServer v3.7.6 addresses this issue by reverting the data structure back to cbuf.

[1] https://github.com/tbnobody/OpenDTU/issues/2535

Signed-off-by: Peter Lieven <pl@dlhnet.de>
2025-04-08 20:18:48 +00:00
Bernhard Kirchen
c3ce0b8d9a Fix: DTU serial change not possible 2025-04-08 21:03:21 +02:00
Thomas Basler
014c12dbe4 webapp: Update dependencies 2025-04-07 18:12:21 +02:00
Thomas Basler
43ba95702e Initialize the dnsserver object in the constructor v25.4.4 2025-04-03 19:06:08 +02:00
Thomas Basler
39c23ebc64 webapp: Update dependencies 2025-04-03 17:45:31 +02:00
Thomas Basler
51b676be2f Fix lint errors 2025-04-02 18:15:29 +02:00
Thomas Basler
d61259bc56 webapp: add app.js.gz v25.4.2 2025-04-02 18:02:32 +02:00
Thomas Basler
6e1635d580 Updated all languages to latest status 2025-04-02 18:00:01 +02:00
Bernhard Kirchen
741e077e90 webapp: remove (more) colons from forms
we went for labels without colons through all settings forms. in the
inverter live view card and modals there were still some left.
2025-04-02 17:57:31 +02:00
Bernhard Kirchen
f4cc7c3979 webapp: beautify controls on web console view
* add margin to the bottom of the row containing the controls so the
  buttons would have some room to the textbox.
* align the text baselines of the checkbox label and the buttons as well
  as possible. align-items-baseline does not work as expected...
2025-04-02 17:57:14 +02:00
Thomas Basler
643dff1c5a Simplify code in radio classes 2025-03-31 19:25:02 +02:00
Thomas Basler
93e4ca8092 Call getLocalTime() only once to prevent a delay of 10ms if no time is available 2025-03-29 18:15:22 +01:00
Thomas Basler
192484ff28 Reduce nested code by one level 2025-03-29 16:55:47 +01:00
Thomas Basler
e2ba93aa4e webapp: Update dependencies 2025-03-29 15:45:53 +01:00