摄像头登录代码点击才会登录
This commit is contained in:
parent
8ec73c1dcb
commit
347226bd3e
|
|
@ -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]) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue