diff --git a/Ifish/controllers/leftcontrollers/ConfigWifiViewController.m b/Ifish/controllers/leftcontrollers/ConfigWifiViewController.m index 6a7c543..df41012 100644 --- a/Ifish/controllers/leftcontrollers/ConfigWifiViewController.m +++ b/Ifish/controllers/leftcontrollers/ConfigWifiViewController.m @@ -139,21 +139,27 @@ extern BOOL isfromCameraView; NSString*airkisTitle = @"一键联网"; NSString*smartTitle = @"快捷联网"; NSString*apTitle = @"AP联网"; + NSString*airkisTips = @"1、插座仅支持2.4G的WiFi网络,不支持5G 及 双频合一的网络(需在路由器设置中分开)\n2、先长按插座复位键3秒,松手后红灯绿灯同时 闪烁,再点确定按钮。\n3、如多次尝试一键联网都不成功,可切换其他 联网方式,每次重新连接时插座需断一次电然后重新复位连接。"; + NSString*smartTips = airkisTips; + NSString*apTips = @"1、插座仅支持2.4G的WiFi网络,不支持5G 及 双频合一的网络(需在路由器设置中分开)\n2、先长按插座复位键13秒左右,松手后红灯绿灯同时熄灭,只有绿灯偶尔闪烁,再点下一步。"; SPAlertController*alert =[SPAlertController alertControllerWithTitle:nil message:nil preferredStyle:SPAlertControllerStyleActionSheet animationType:SPAlertAnimationTypeDefault]; SPAlertAction*airkiss =[SPAlertAction actionWithTitle:airkisTitle style:SPAlertActionStyleDefault handler:^(SPAlertAction * _Nonnull action) { weakSelf.connectType = ConnectTypeAirKiss; weakSelf.connectTypeTitle.text = airkisTitle; + weakSelf.connectTipLbl.text = airkisTips; }]; SPAlertAction*smart =[SPAlertAction actionWithTitle:smartTitle style:SPAlertActionStyleDefault handler:^(SPAlertAction * _Nonnull action) { weakSelf.connectType = ConnectTypeSmartESPTouch; weakSelf.connectTypeTitle.text = smartTitle; + weakSelf.connectTipLbl.text = smartTips; }]; SPAlertAction*ap =[SPAlertAction actionWithTitle:apTitle style:SPAlertActionStyleDefault handler:^(SPAlertAction * _Nonnull action) { weakSelf.connectType = ConnectTypeSmartESPTouch; weakSelf.connectTypeTitle.text = apTitle; + weakSelf.connectTipLbl.text = apTips; }]; SPAlertAction*cancel =[SPAlertAction actionWithTitle:@"取消" style:SPAlertActionStyleCancel handler:^(SPAlertAction * _Nonnull action) { @@ -432,7 +438,7 @@ extern BOOL isfromCameraView; } [self savePassw]; - [self tapConfirmForResults]; + [self configWifiForDevice]; // [self initMMProgressHUD]; [self connectNotNormalView]; @@ -538,7 +544,7 @@ extern BOOL isfromCameraView; [userdefult synchronize]; } -- (void) tapConfirmForResults{ +- (void)configWifiForDevice{ NSLog(@"ViewController do confirm action...");