ilabs-flir 2.1.31 → 2.1.32
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.
|
@@ -99,6 +99,11 @@ static BOOL flir_isPreferSdkRotation(void) {
|
|
|
99
99
|
@property (nonatomic, copy) NSString *connectedDeviceId;
|
|
100
100
|
@property (nonatomic, copy) NSString *connectedDeviceName;
|
|
101
101
|
@property (nonatomic, assign) double lastTemperature;
|
|
102
|
+
|
|
103
|
+
- (void)emitStateChange:(NSString *)state;
|
|
104
|
+
- (void)emitDeviceConnected;
|
|
105
|
+
- (void)stopStreamInternal;
|
|
106
|
+
|
|
102
107
|
@end
|
|
103
108
|
|
|
104
109
|
@implementation FlirModule
|
|
@@ -545,7 +550,7 @@ RCT_EXPORT_METHOD(stopFlir:(RCTPromiseResolveBlock)resolve
|
|
|
545
550
|
return;
|
|
546
551
|
}
|
|
547
552
|
} @catch (NSException *exception) {
|
|
548
|
-
RCTLogError(@"[FlirModule] Stream start exception:
|
|
553
|
+
RCTLogError(@"[FlirModule] Stream start exception: %@", exception.reason);
|
|
549
554
|
self.stream = nil;
|
|
550
555
|
self.streamer = nil;
|
|
551
556
|
[[FlirEventEmitter shared] sendDeviceEvent:@"FlirError" body:@{@"error": exception.reason ?: @"Stream start exception"}];
|
|
@@ -554,7 +559,7 @@ RCT_EXPORT_METHOD(stopFlir:(RCTPromiseResolveBlock)resolve
|
|
|
554
559
|
|
|
555
560
|
self.isStreaming = YES;
|
|
556
561
|
[self emitStateChange:@"streaming"];
|
|
557
|
-
RCTLogInfo(@"[FlirModule] Stream started (thermal: %@)
|
|
562
|
+
RCTLogInfo(@"[FlirModule] Stream started (thermal: %@)", newStream.isThermal ? @"YES" : @"NO");
|
|
558
563
|
}
|
|
559
564
|
|
|
560
565
|
- (void)stopStreamInternal {
|