socket使用结束时调用close方法
This commit is contained in:
@@ -43,11 +43,6 @@
|
||||
UITapGestureRecognizer *fiveTapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(test)];
|
||||
fiveTapGesture.numberOfTapsRequired = 5;
|
||||
[self.containerView addGestureRecognizer:fiveTapGesture];
|
||||
|
||||
IFishUDPHelperBackMsgModel *model = [IFishUDPHelperBackMsgModel new];
|
||||
model.result = @"01";
|
||||
model.senderMacAddress = @"123456778";
|
||||
[self udpHelperCommandExecutedSuccess:model];
|
||||
}
|
||||
|
||||
- (void)test {
|
||||
@@ -155,6 +150,7 @@
|
||||
[self appendTrakContent:@"=================收到设备答复==================="];
|
||||
[self appendTrakContent:[NSString stringWithFormat:@"答复状态码:%@", backModel.result]];
|
||||
[self appendTrakContent:[NSString stringWithFormat:@"答复Mac地址:%@", backModel.senderMacAddress]];
|
||||
[[IFishHotpotUDPHelper sharedInstance] broadCastRestartCommand];
|
||||
[self bindDeviceWithSsid:backModel.senderMacAddress];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user