Skip to content

Commit a4f03b2

Browse files
author
eagleychen
committed
接口更新后,app更新调用
1 parent fa84925 commit a4f03b2

File tree

1 file changed

+3
-2
lines changed
  • Source/LinkApp/Classes/Module/EquipmentPanel/Controller

1 file changed

+3
-2
lines changed

Source/LinkApp/Classes/Module/EquipmentPanel/Controller/TIoTPanelVC.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,8 @@ - (void)starP2PServer {
942942
}
943943
}
944944
NSLog(@"_sys_xp2p_info xp2pValue : %@",xp2pValue);
945-
int errorcode = [[TIoTCoreXP2PBridge sharedInstance] startAppWith:@"" sec_key:@"" pro_id:self.productId?:@"" dev_name:self.deviceName?:@"" xp2pinfo:xp2pValue];
945+
int errorcode = [[TIoTCoreXP2PBridge sharedInstance] startAppWith:self.productId?:@"" dev_name:self.deviceName?:@""];
946+
[[TIoTCoreXP2PBridge sharedInstance] setXp2pInfo:self.deviceName xp2pinfo:xp2pValue];
946947

947948
if (errorcode == XP2P_ERR_VERSION) {
948949
UIAlertController *alertC = [UIAlertController alertControllerWithTitle:@"APP SDK 版本与设备端 SDK 版本号不匹配,版本号需前两位保持一致" message:nil preferredStyle:(UIAlertControllerStyleAlert)];
@@ -4089,7 +4090,7 @@ - (void)refushXP2Pinfo {
40894090
}
40904091
NSLog(@"refushXP2Pinfo_sys_xp2p_info : %@",xp2pValue);
40914092

4092-
int errorcode = [[TIoTCoreXP2PBridge sharedInstance] setXp2pInfo:self.deviceName?:@"" sec_id:nil sec_key:nil xp2pinfo:xp2pValue];
4093+
int errorcode = [[TIoTCoreXP2PBridge sharedInstance] setXp2pInfo:self.deviceName?:@"" xp2pinfo:xp2pValue];
40934094

40944095
//重新拉流/推流
40954096
// [self refreshP2PPlayerAndStartCapture];

0 commit comments

Comments
 (0)