摄像头登录代码点击才会登录

This commit is contained in:
祝发冬 2023-08-27 23:37:12 +08:00
parent 8ec73c1dcb
commit 347226bd3e
2 changed files with 4 additions and 3 deletions

View File

@ -234,9 +234,9 @@ withFilterContext:(id)filterContext
return;
}
NSString* serIp = [GCDAsyncUdpSocket hostFromAddress:address];
NSLog(@"serIp=%@",serIp);
serIp= [serIp stringByReplacingOccurrencesOfString:@"::ffff:" withString:@""];
NSLog(@"serIp=%@,length=%ld",serIp,data.length);
//uint16_t serPort = (int)[GCDAsyncUdpSocket portFromAddress:address];
if ([serIp isEqualToString:_localIP]) {

View File

@ -30,7 +30,7 @@ extern BOOL isfromCameraView;
// Do any additional setup after loading the view.
[self addTitleViewWithTitle:@"选择设备"];
[self creatTab];
[self loginGWP2P];
}
-(void)viewDidAppear:(BOOL)animated{
@ -131,6 +131,7 @@ extern BOOL isfromCameraView;
// [self.view makeToast:@"设备已达上限"];
// return;
// }
[self loginGWP2P];
if ( [GWP2PClient sharedClient].linkStatus==P2PLinkStatusOK) {