Commit Graph

5 Commits

Author SHA1 Message Date
Michael Holzmann 98ac623423 fix: stop BLE scan from starving WiFi
- 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
2026-11-14 14:47:08 +00:00
Michael Holzmann 780df35131 feat: add runtime diagnostics
- 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
2026-11-14 14:46:17 +00:00
MrSossidge 1c19d29353 Add external device load sensor 2026-05-18 13:49:59 +01:00
MrSossidge 27a362b5b3 Add README 2026-05-17 20:41:37 +01:00
MrSossidge 8de1704adc Working Victron SmartSolar BLE to MQTT bridge with HA discovery 2026-05-17 20:32:53 +01:00