Commit Graph
170 Commits
Author SHA1 Message Date
Alexander DandClaude Opus 5.5 e1db103470 fix: give ESP32-C6 valid default GPIOs on first start
The C6 autodetect picked the CUSTOM profile, but load_board_profile() has
no entry for it, so Rx, Tx and the button stayed at the placeholder 99.
The startup settings load then failed the GPIO check and fell back to an
empty settings object (blank Board Profile, Tx Mode and Bus ID), and every
Application settings save returned 400 until valid pins were sent together
with CUSTOM through the API.

Start a C6 without a profile as CUSTOM with pins for the Seeed XIAO
ESP32-C6 (the c6_xiao_4M build): Rx GPIO20 (D9), Tx GPIO19 (D8), button
GPIO9 (BOOT), no LED, no Dallas sensor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 19:39:06 +00:00
proddy 5657aacb8b formatting 2026-10-15 21:21:50 +02:00
proddy fb8edfb6a7 change year 2025 to 2026 2026-09-25 08:44:57 +02:00
proddyandCursor 15ece2030e auto-convert older 3.8.x filesystem to the 3.9.0 format
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-20 11:20:37 +02:00
Proddy e33b91f5a2 Merge pull request #3241 from HeatMind/fix/weblog-buffer-zero
Guard against a stored weblog_buffer of 0 (pop_front on an empty deque)
2026-09-18 15:08:39 +02:00
HeatMind b2b98ef660 fix(weblog): guard against a weblog_buffer of 0 (pop_front on empty deque)
WebLogService::operator<< trims with `log_messages_.size() >= limit_log_messages_`.
size() is unsigned, so with limit_log_messages_ == 0 the condition holds even for an
empty deque and pop_front() runs on it - undefined behaviour, in practice heap
corruption. On a PSRAM board the stored value survives a reboot, so the device crashes
again as soon as the first log message is written.

Nothing clamps the value on the way in: start() copies settings.weblog_buffer with no
lower bound, the PSRAM branch of operator<< passes it straight into
limit_log_messages_, and ArduinoJson's | in WebSettings::update() only substitutes the
default for a missing or type-incompatible key - a stored 0 is a valid uint16_t.

- operator<<: skip the trim loop on an empty deque
- start(): keep the existing default when the stored value is 0
- getSetValues(): a missing or zero max_messages keeps the current size instead of
  storing 0
- WebSettings::update(): repair a stored 0, and derive the psram/no-psram default once
  instead of twice

Refs #3237
2026-09-15 09:13:24 +02:00
proddy 167f194bdf add auto check for firmware updates 2026-09-14 19:33:20 +02:00
proddy a1a880b8c3 text changes and comments 2026-09-11 16:27:53 +02:00
proddy 98a6199a69 fixes for email service 2026-08-29 11:18:53 +02:00
proddy 2bef33f81a added application setting 'disable factory' Feature request->Button anti tampering mode
Fixes #3150
2026-07-26 13:34:15 +02:00
proddy cbfebabfa3 Feature Request: Make the "EMS-ESP" title text in the web interface configurable.
Fixes #3110
2026-06-07 09:56:07 +02:00
proddy 46c5560222 add TLS support for all boards 2026-05-25 12:32:53 +02:00
proddy 90894898c2 use PSRAM in AsyncJsonResponse 2026-05-17 16:19:54 +02:00
proddy 33fda705c0 Feature: Make RGB LED (preset colors) accessible via API/etc #3039
Fixes #3063
2026-05-15 10:07:17 +02:00
MichaelDvP 459270e035 rename sendmail and add security list instead of checkbox 2026-05-10 11:10:53 +02:00
MichaelDvP ff952935a2 Merge branch 'dev' into core3 2026-05-07 12:10:53 +02:00
MichaelDvP ae5beccb9d dev.20, fixes #3064, handling of optional gpios 2026-05-07 12:02:33 +02:00
proddy eab7cdd7b5 updates 2026-05-03 15:19:49 +02:00
MichaelDvP 685a49c212 Merge branch 'dev' into core3, formatting, add back sendmail settings 2026-04-17 12:28:41 +02:00
proddy def5173692 fix merge issues 2026-04-15 20:37:33 +02:00
proddy 4d3b31e5a1 sync with dev 2026-04-15 09:25:38 +02:00
proddy 7c3782a43f upload warnings 2026-04-14 21:08:45 +02:00
proddy fb09e10f19 sync with core3 features 2026-03-30 23:26:04 +02:00
MichaelDvP d2a13ec0da core3 adaptions for c3 and c6, compiles for all chips 2026-03-21 16:23:07 +01:00
MichaelDvP 0fe45a2405 use ESP_SSLClient for mqtt, add sendmail command (using readymail) 2026-03-17 18:53:37 +01:00
MichaelDvP 8c732f9f1e allow modbus start/stop without reboot 2026-03-15 16:12:50 +01:00
proddy 6741232450 WIP: ESP-IDF Core 3 migration - mbedtls SSL, module library, board configs, MQTT and network updates 2026-02-15 13:53:13 +01:00
proddy 038f06e59f show psram on startup 2026-01-22 16:39:14 +01:00
MichaelDvP 8379b3f5aa Merge branch 'dev' of https://github.com/emsesp/EMS-ESP32 into dev 2026-01-11 16:26:00 +01:00
MichaelDvP 08124fa4db set gpio when switching to custom board 2026-01-11 16:25:42 +01:00
proddy 8ee0789dad emsesp.org ownership 2026-01-11 14:17:49 +01:00
MichaelDvP 33bb433d7e always set valid gpio in load board profile 2026-01-10 19:47:03 +01:00
MichaelDvP 6fc3bf30b6 HA uom L, formatting 2026-01-10 18:19:14 +01:00
MichaelDvP 8799015f59 fix board change ignore old gpio settings 2026-01-10 16:06:43 +01:00
MichaelDvP 12ce736580 remove eth fixed pins 2026-01-09 21:03:23 +01:00
MichaelDvP b9aaaae90a allow uart0 pins for custom boards 2026-01-09 16:30:07 +01:00
MichaelDvP d624b9eac9 GPIOs depends on board profile, #2901 2026-01-07 10:29:59 +01:00
proddy bf5990a992 fix setting default version 2026-01-05 21:35:39 +01:00
proddy 68ebcdded4 gpio exclusion, add name 2026-01-04 11:44:28 +01:00
proddy b992f90fe2 AsyncTCP changes 2026-01-03 13:56:27 +01:00
MichaelDvP 205da33fe5 snapshot gpios in temporarly ram 2026-01-01 11:49:38 +01:00
proddy 3d70e8c1e6 clear_snapshot_gpios 2025-12-23 19:32:25 +01:00
proddy c4a43183b3 GPIOs not checked when board profile is adjusted
#2841
2025-12-22 17:18:37 +01:00
MichaelDvP 43e087ae91 allow uart0 pin for eth (check eth first) #2794 2025-12-07 13:02:25 +01:00
MichaelDvP 882e3bc1cd Merge branch 'dev' of https://github.com/emsesp/EMS-ESP32 into dev 2025-11-30 21:25:07 +01:00
proddy 5cb9f3b014 init board profile correctly 2025-11-29 14:48:57 +01:00
MichaelDvP 5ed4970d62 change uart pins without restart 2025-11-28 09:08:53 +01:00
MichaelDvP 056cf3cbd6 settingservice gpio initialization for custom boards 2025-11-26 18:17:40 +01:00
proddy 8ea8c1821d Merge branch 'dev' of https://github.com/proddy/EMS-ESP32 into dev 2025-11-26 14:00:08 +01:00
proddy 237551d9f6 remove eth power gpio if set 2025-11-26 14:00:02 +01:00