- WIFI_DISABLE_POWER_SAVE (default 1 = keep modem sleep off)
- HA_DISCOVERY_ENABLED: switch auto-discovery off entirely; the payload
strings are compiled out, saving ~4.6 KB of flash
- HA_DISCOVERY_PREFIX, HA_DEVICE_ID, HA_UNIQUE_PREFIX, HA_DEVICE_NAME,
HA_MODEL and HA_MANUFACTURER replace the hardcoded garage identifiers,
so a second MPPT can run without entity/topic collisions
- Defaults reproduce the previous topics, unique_ids and payloads exactly
- Document the new options in README; all values remain #ifndef-guarded
so existing config.h files keep compiling
- Guard the AES output buffer against oversized advertisements
- Protect the cross-core MpptData hand-off with a critical section and
publish from a consistent snapshot
- Scan in 30s blocks and clear results between them: NimBLE 1.4.x only
frees its result list when a scan completes, and one entry is kept per
unique BLE address (including MAC-randomising phones)
- Do not let the forced-reconnect watchdog reset the reboot watchdog
- Publish discovery immediately after a reconnect instead of waiting for
the retry timer
- Pin espressif32 to 6.13.0 (Arduino core 2.0.17), the last platform
compatible with NimBLE-Arduino 1.4.x
- Document diagnostics, watchdogs and the data_age_s field
- Replace the blocking WiFi and MQTT connect loops with non-blocking
retry-on-timer functions, so the MQTT task never parks forever on an
unreachable broker
- Publish data on a fixed cadence as well as on new BLE packets, adding
data_age_s so stale values are visible
- Track successful publishes; force an MQTT reconnect after 5 minutes
without one (half-open TCP socket) and reboot after 60 minutes with no
success at all
- Retry Home Assistant discovery every 30s until every config topic has
been accepted instead of silently giving up
- MQTT keepalive 30s, socket timeout 5s, publish buffer 1024 bytes
- Scan continuously with a 50% duty cycle (interval 100ms / window 50ms)
instead of a 99% window that leaves almost no airtime for WiFi
- Drop the 5s scan / 10s idle loop cadence, which created regular 10s
holes in BLE reception
- Restart the scan only when the controller reports it as stopped
- setMaxResults(0): callbacks only, no per-device allocations
- Disable WiFi modem sleep and auto-reconnect on
- Initialise WiFi before BLE and create the MQTT task afterwards so the
two radio drivers are never brought up concurrently
- Log WiFi association, IP and disconnect reason codes
- Publish solar/mppt/diag every 60s: uptime, WiFi status/RSSI, free and
min-free heap, WiFi disconnect count, MQTT connect count, publish
failures, BLE valid/ignored packet counts and BLE packet age
- Count and log failed MQTT data publishes instead of dropping silently
- Log failed BLE scan starts
- Document the new diag topic