Commit Graph
4 Commits
Author SHA1 Message Date
pwshandClaude Opus 5.5 f06b4b1de6 [DISC] Fix empty unique_id suffix for gateway entities (#2401)
createDiscoveryFromList() used column [2] as the unique id suffix of
gateway entities whenever it was non null. The gateway sensors (RF, RF2,
IR, Pilight, SRFB, RFM69, LORA, 2G, hcsr501...) pass "" there, so they
all got the unique_id "<MAC>-": entities of a multi module gateway
collide in Home Assistant, and the ids changed from the
"<MAC>-gatewayLORA" form used by v1.8.1, duplicating entities on
upgrade. Treat an empty suffix like a null one and fall back to the
name, as already done for column [11].

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 06:52:18 -05:00
pwshandClaude Opus 5.5 3986d9d1f7 [LORA] Fix buffer overflow when converting binary packets to hex (#2402)
TheengsUtils::_rawToHex() formats each byte with "%02X\r", so the last
sprintf writes two bytes past the 2 * size hex digits (the '\r' and the
terminating null). LORAtoX() sized its buffer 2 * packetSize + 1, one
byte short, overflowing the stack for every binary LoRa packet.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 06:51:09 -05:00
pwshandClaude Opus 5.5 3ec01a72fd [WebUI] Show the active modules as text in the page heading (#2406)
Every page heading printed the modules JSON array as is
(["LilyGo_SSD1306","WebUI","LORA"]). Show it as a comma separated list.
The heading buffer was also filled with serializeJson(modules, jsonChar,
measureJson(modules) + 1), i.e. the size of the text rather than of the
100 bytes buffer, which overflows when many modules are enabled; the new
helper (and the boot log) use the buffer size.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 06:50:14 -05:00
pwshandClaude Opus 5.5 eb1e7c71e6 [WebUI] Fix dangling pointer when saving the gateway password (#2408)
server.arg() returns a String by value, so the pointer from c_str()
pointed into a temporary that was destroyed before strlen()/strcpy().

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 06:47:46 -05:00