|
@@ -87,7 +87,8 @@ static webSocketManager *webSocketManagerInstance = nil;
|
|
|
KWeakSelf
|
|
|
//初始化指令通道
|
|
|
self.commandChannelManager = [[RCCommandChannelManager alloc] init];
|
|
|
-
|
|
|
+ [self initOtherFun];//timer 检测链接情况
|
|
|
+
|
|
|
NSString *wsPort = @"";
|
|
|
if([connectDeviceManager shareInstance].isPingOk
|
|
|
&& [AFNetworkReachabilityManager sharedManager].networkReachabilityStatus == AFNetworkReachabilityStatusReachableViaWiFi){
|
|
@@ -107,7 +108,6 @@ static webSocketManager *webSocketManagerInstance = nil;
|
|
|
//HLog(@"WebSocket11111指令通道连接成功11111 url = %@ ",instructionsChannelUrl);
|
|
|
if (weakSelf.commandChannelManager.rc_socketStatus == RCSocketCloudPhoneStatusConnected){
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
|
|
- [weakSelf initOtherFun];
|
|
|
[weakSelf handlAllMsgAfterDidLinkFun];
|
|
|
|
|
|
});
|