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 polling approach since the SDK doesn't provide async callback
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
- if status == .pending {
574
- // For pending auth, just log and continue - user needs to approve on camera
575
- FlirLogger.log(.connection, "Authentication pending - camera may require approval")
576
- // Don't block here - proceed with connection attempt
577
- // If auth is required, the connect() call will fail appropriately
578
- } else if status == .notUsed || status == .trusted {
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ilabs-flir",
3
- "version": "2.2.10",
3
+ "version": "2.2.11",
4
4
  "description": "FLIR Thermal SDK for React Native - iOS & Android (bundled at compile time via postinstall)",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",