杀菌倒计时和摄像头分享

This commit is contained in:
kai60
2020-06-06 17:47:11 +08:00
parent 22e170a66f
commit ee657760c4
7 changed files with 79 additions and 21 deletions
@@ -510,7 +510,7 @@ self.attentionLabel.text=@"1、请长按摄像头背后复位孔,复位摄像
{
//
if (self.deviceID.length&&![self.linkDict[self.deviceID] boolValue]) {//90秒之后还未连接上,连接超时
[[GWP2PDeviceLinker shareInstance] p2pStopSmartLink];
[[GWP2PDeviceLinker shareInstance] p2pStopAPLink];
[self connectNormalView];
if ([[[CommonUtils getSSIDInfo] objectForKey:@"SSID"] isEqualToString:self.wifiName])
@@ -526,6 +526,9 @@ self.attentionLabel.text=@"1、请长按摄像头背后复位孔,复位摄像
else if(!self.deviceID.length)
{
[self.view makeToast:@"获取设备ID失败"];
[[GWP2PDeviceLinker shareInstance] p2pStopSmartLink];
[[GWP2PDeviceLinker shareInstance] p2pStopAPLink];
[self connectNormalView];
}
}
-(void)apLinkConnect
@@ -546,7 +549,7 @@ self.attentionLabel.text=@"1、请长按摄像头背后复位孔,复位摄像
{
weakSelf.deviceID=deviceId;
// [weakSelf.view makeToast:[NSString stringWithFormat:@"设备即将连接网络,请将手机重新连接到%@",weakSelf.wifiName]];
[weakSelf.view makeToast:[NSString stringWithFormat:@"设备即将连接网络,请将手机自动重新连接到%@",weakSelf.wifiName]];
}