From 4aef370bfa6280dbc288f44ee978f1fd6d5d668e Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Wed, 25 Mar 2026 09:50:39 +0100
Subject: [PATCH] feat: extend subnet scan to full /24 (254 hosts) for home network coverage

---
 lib/services/mqtt_service.dart |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/services/mqtt_service.dart b/lib/services/mqtt_service.dart
index 3fddb0f..60930a5 100644
--- a/lib/services/mqtt_service.dart
+++ b/lib/services/mqtt_service.dart
@@ -215,9 +215,9 @@
           final subnet = '${parts[0]}.${parts[1]}.${parts[2]}';
           _mqttLog('MQTT: scanning $subnet.0/24 on ${iface.name}');
 
-          // Probe hosts 1-14 in parallel (covers /28 hotspot subnet)
+          // Probe all hosts in parallel — 1s timeout each, runs concurrently
           final futures = <Future<String?>>[];
-          for (int i = 1; i <= 14; i++) {
+          for (int i = 1; i <= 254; i++) {
             final probe = '$subnet.$i';
             if (probe == addr.address) continue; // skip self
             futures.add(_probeHost(probe, config.port));

--
Gitblit v1.3.1