config, 'ip'); if (blank($ip)) { return false; } try { $status = $this->rpc->status($ip); } catch (\Throwable) { // Unreachable — normal for a powered-off device. Don't advance last_seen (it falls // offline after the timeout) and don't spam the log on every poll. return false; } $observedAt = (int) round(microtime(true) * 1_000_000); $device->forceFill(['last_seen_at' => now()])->save(); $this->applier->applyStatus($device, $status, $observedAt); return true; } }