// // BLEModel.h // BluetoothDemo // // Created by mac on 17/3/9. // Copyright © 2017年 . All rights reserved. // #import #import #import "BLEConst.h" #import "BlueToothEume.h" @interface BLEModel : NSObject /** 信号强度 */ @property (nonatomic, strong) NSNumber *RSSI; /** 外设携带数据 */ @property (nonatomic, strong) NSDictionary *advertisementData; /** 外设 */ @property (nonatomic, strong) CBPeripheral *peripheral; /** 中心管理 */ @property (nonatomic, strong) CBCentralManager *central; /** uuid唯一标识(暂时使用这个后期更换mac地址)*/ @property (nonatomic, copy ) NSString *UUIDString; /** MAC地址 */ @property (nonatomic, copy ) NSString *MACString; /** 是否DFU设备 */ @property (nonatomic, assign) BOOL isDFU; /** 是否系统已配对的设备 */ @property (nonatomic, assign) BOOL isPaired; /** 构造一个BLE模型 @param central 中心管理 @param peripheral 外设 @param advertisementData 外设携带数据 @param RSSI 信号强度 @param UUIDString uuid */ - (instancetype)initWithCentral:(CBCentralManager *)central Peripheral:(CBPeripheral *)peripheral AdvertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI UUIDString:(NSString *)UUIDString MACString:(NSString *)MACString; @end