PcycleSDK 使用方法 - Pcycle/PcycleSDK-iOS GitHub Wiki

  1. 将 PcycleSDK.framework 拖入工程目录;

    image

  2. 在使用SDK的文件中添加头文件引用:

    #import <PcycleSDK/PcycleSDK.h>
    
  3. 初始化 PcycleSDK:

     PcycleSDK *pcycleSDK = [[PcycleSDK alloc] initWithDelegate:self];
    
  4. 使用api接口,例如:

     //开始扫描Pcycle设备
     [pcycleSDK scanForPcycleDevices];
    

    获取扫描结果:

     //实现委托的方法获取扫描信息
     -(void) pcycleSDK:(PcycleSDK *) pcycleSDK discoverPcycleDevice:(NSString *)name UUID:(NSString *)uuid RSSI:(NSNumber *)RSSI
     {
    
     }