You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.5 KiB
52 lines
1.5 KiB
// |
|
// BLEModel.h |
|
// BluetoothDemo |
|
// |
|
// Created by mac on 17/3/9. |
|
// Copyright © 2017年 . All rights reserved. |
|
// |
|
|
|
#import <Foundation/Foundation.h> |
|
#import <CoreBluetooth/CoreBluetooth.h> |
|
#import "ZDBaseModel.h" |
|
//#import "BlueToothEume.h" |
|
|
|
@interface BLEModel : ZDBaseModel |
|
|
|
/** 信号强度 */ |
|
@property (nonatomic, copy) NSNumber *RSSI; |
|
/** 外设携带数据 */ |
|
@property (nonatomic, copy) NSDictionary *advertisementData; |
|
/** 外设 */ |
|
@property (nonatomic, copy) 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; |
|
|
|
/// 设备名称 |
|
@property (nonatomic ,copy) NSString *DeName; |
|
|
|
/** |
|
// 构造一个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
|
|
|