Add IP roaming reconciliation for active devices during network scan
- Extract reconcile_scan_results() into Devices model: updates device_ip
  and restores connection_status='active' when a known device is found on
  a different IP address.
- Refactor CronController to use the shared method.
- Also call reconcile_scan_results() in DevicesRESTAPIController::scanning__all()
  so manual scans from the UI update roaming device IPs.
- Add DevicesTest with coverage for IP update + lost device restore.
- Fix test bootstrap: remove non-existent SHServ\Sessions reference.
1 parent 66d3fd7 commit fe07f7534f8387f0cbc728d0fd30cc39b7751bb5
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 9 hours ago
Showing 6 changed files
View
server/SHServ/Controllers/CronController.php
View
server/SHServ/Controllers/DevicesRESTAPIController.php
View
server/SHServ/Models/Devices.php
View
server/tests/DevicesTest.php 0 → 100644
View
server/tests/TestApp.php
View
server/tests/bootstrap.php