Matthias Nott
2026-03-25 4aef370bfa6280dbc288f44ee978f1fd6d5d668e
feat: extend subnet scan to full /24 (254 hosts) for home network coverage
1 files modified
changed files
lib/services/mqtt_service.dart patch | view | blame | history
lib/services/mqtt_service.dart
....@@ -215,9 +215,9 @@
215215 final subnet = '${parts[0]}.${parts[1]}.${parts[2]}';
216216 _mqttLog('MQTT: scanning $subnet.0/24 on ${iface.name}');
217217
218
- // Probe hosts 1-14 in parallel (covers /28 hotspot subnet)
218
+ // Probe all hosts in parallel — 1s timeout each, runs concurrently
219219 final futures = <Future<String?>>[];
220
- for (int i = 1; i <= 14; i++) {
220
+ for (int i = 1; i <= 254; i++) {
221221 final probe = '$subnet.$i';
222222 if (probe == addr.address) continue; // skip self
223223 futures.add(_probeHost(probe, config.port));