- Scan with a completion callback instead of blocking start(); results
are only cleared when the scanner is confirmed idle
- Stall detection per block; 2 stalls re-init NimBLE, 5 reboot the ESP32
- Reboot if BLE worked before and no valid packet for 30 min
- Diag counters: adv_total, mac_hits, victron_prefix, ble_stalls,
ble_recoveries; log first foreign Victron address seen
- Log target MAC at scanner init
- Static scan callback instance (no leak on re-init)
- write-flash / erase-flash / merge-bin instead of the deprecated
write_flash / erase_flash / merge_bin
- esptool instead of esptool.py
- hyphenated --flash-mode/--flash-freq/--flash-size for merge-bin
- note that esptool 4.x still works but prints the deprecation warning
- 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
- 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