PcycleSDK 使用方法 - Pcycle/PcycleSDK-iOS GitHub Wiki
-
将 PcycleSDK.framework 拖入工程目录;
-
在使用SDK的文件中添加头文件引用:
#import <PcycleSDK/PcycleSDK.h>
-
初始化 PcycleSDK:
PcycleSDK *pcycleSDK = [[PcycleSDK alloc] initWithDelegate:self];
-
使用api接口,例如:
//开始扫描Pcycle设备 [pcycleSDK scanForPcycleDevices];
获取扫描结果:
//实现委托的方法获取扫描信息 -(void) pcycleSDK:(PcycleSDK *) pcycleSDK discoverPcycleDevice:(NSString *)name UUID:(NSString *)uuid RSSI:(NSNumber *)RSSI { }