@@ -220,7 +220,7 @@ - (__kindof UICollectionViewCell *)collectionView:(UICollectionView *)collection
220220 if (self.productNameArray .count == self.blueDevices .count ) {
221221 NSString *productName = self.productNameArray [indexPath.row];
222222 if ([productName isEqualToString: @" error" ]) {
223- cell.itemString = @" 未知设备" ;
223+ cell.itemString = NSLocalizedString( @" unknow_device " , @" 未知设备" ) ;
224224 cell.detailString = [self getBlueDeviceMacIndex: indexPath];
225225 }else {
226226 cell.itemString = productName;
@@ -466,20 +466,21 @@ - (void)bindSubDevice {
466466 NSString *writeInfo = [NSString stringWithFormat: @" 02000D02%@%@ " ,randomHex,bingIDString];
467467 [self .blueManager sendNewLLSynvWithPeripheral: self .currentConnectedPerpheral Characteristic: self .characteristicFFE1 LLDeviceInfo: writeInfo];
468468
469+ [MBProgressHUD showMessage: NSLocalizedString(@" bind_LLSync_device_success" , @" 绑定纯蓝牙设备成功" ) icon: @" " ];
470+
469471 dispatch_after (dispatch_time (DISPATCH_TIME_NOW, (int64_t )(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue (), ^{
470472 [self .blueManager disconnectPeripheral ];
471- [MBProgressHUD showMessage: @" 绑定纯蓝牙设备成功" icon: @" " ];
472473 [self .navigationController popViewControllerAnimated: YES ];
474+ // TODO: 将local psk 上传服务器,后续有用到(子设备连接有用)
475+ [self uploadLocalPsk: randomHex];
473476 });
474477
475- // TODO: 将local psk 上传服务器,后续有用到(子设备连接有用)
476- [self uploadLocalPsk: randomHex];
477-
478478 } failure: ^(NSString *reason, NSError *error, NSDictionary *dic) {
479479 [self .blueManager sendNewLLSynvWithPeripheral: self .currentConnectedPerpheral Characteristic: self .characteristicFFE1 LLDeviceInfo: @" 03200101" ];
480480
481481 dispatch_after (dispatch_time (DISPATCH_TIME_NOW, (int64_t )(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue (), ^{
482482 [MBProgressHUD showMessage: @" 绑定纯蓝牙设备失败" icon: @" " ];
483+ [MBProgressHUD showMessage: NSLocalizedString(@" bind_LLSync_device_failure" , @" 绑定纯蓝牙设备失败" ) icon: @" " ];
483484 [self .blueManager disconnectPeripheral ];
484485 });
485486 }];
0 commit comments