Skip to content

Felix-2022/StpDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

BLE demo

Requirements

ble demo,需要引入 demo里对应的pod 
需要info.plist 添加蓝牙权限
需要真机运行测试蓝牙连接

##如果需要模拟器调试

首先 需要更新 STPBluetoothManager 文件

debug模式忽略.a或者framework

在build Setting–> EXCLUDED_SOURCE_FILE_NAMES -> Debug -> add any iOS Simulator SDK 添加 libblufiSDK.a

####1.1版本修改。 #####修改 wifi密码包含特殊字符问题

STPSelectNetController  
 - (void)connectWifiAction:(NSString*)password; 方法修改为
 
    - (void)connectWifiAction:(NSString*)password{
       STPBingsResultController *resultVC = [STPBingsResultController new];
       resultVC.wifiSSid = self.wifiNameTxtField.text;
       password = [password stringByReplacingOccurrencesOfString:@"\\" withString:@"\\\\"];
       NSString *newPassword = [NSString stringWithString:password];
       NSLog(@"test -- %@",newPassword);
       resultVC.wifiPassword = newPassword;
       [self.navigationController pushViewController:resultVC animated:YES];
    }
   

Author

Kris

About

demo for StpOCSDK

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published