ilabs-flir 2.2.10 → 2.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -563,28 +563,18 @@ import ThermalSDK
|
|
|
563
563
|
}
|
|
564
564
|
|
|
565
565
|
// Handle authentication for generic cameras (network cameras)
|
|
566
|
-
// Note: This uses a
|
|
567
|
-
// Reduced polling frequency to minimize blocking
|
|
566
|
+
// Note: This uses a single attempt since the SDK doesn't provide async callback
|
|
568
567
|
if identity.cameraType() == .generic {
|
|
569
568
|
FlirLogger.log(.connection, "Generic/network camera - attempting authentication...")
|
|
570
569
|
let certName = getCertificateName()
|
|
571
570
|
let status = cam.authenticate(identity, trustedConnectionName: certName)
|
|
572
571
|
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
FlirLogger.log(.connection, "✅ Authentication status: \(status.rawValue)")
|
|
580
|
-
} else {
|
|
581
|
-
FlirLogger.logError(.connection, "Authentication failed with status: \(status.rawValue)")
|
|
582
|
-
DispatchQueue.main.async { [weak self] in
|
|
583
|
-
self?.emitStateChange("connection_failed")
|
|
584
|
-
self?.delegate?.onError("Camera authentication failed")
|
|
585
|
-
}
|
|
586
|
-
return
|
|
587
|
-
}
|
|
572
|
+
// Log the status - don't block on pending, just proceed
|
|
573
|
+
// The connect() call will fail appropriately if auth is truly required
|
|
574
|
+
FlirLogger.log(.connection, "Authentication status: \(status.rawValue)")
|
|
575
|
+
|
|
576
|
+
// Only fail on explicit rejection (status values vary by SDK version)
|
|
577
|
+
// Pending status means we should try to connect anyway
|
|
588
578
|
}
|
|
589
579
|
|
|
590
580
|
do {
|