lib = [TSCSDK new];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
//因为判断是否连接的话去,再实现openportMFI: (NSString*) MFIdestination CPU会爆得很高
if([lib openportMFI] != 1){
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"提示" message:@"请到设置界面链接设备" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *conform = [UIAlertAction actionWithTitle:@"去连接" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
NSURL * url = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
if([[UIApplication sharedApplication] canOpenURL:url]) {
NSURL*url =[NSURL URLWithString:UIApplicationOpenSettingsURLString];