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.

50 lines
1.5 KiB

2 years ago
//
// BLEModelFireBoltt.h
2 years ago
// BluetoothDemo
//
// Created by mac on 17/3/9.
// Copyright © 2017年 . All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreBluetooth/CoreBluetooth.h>
#import "BLEConstFireBoltt.h"
#import "BlueToothEume_FireBoltt.h"
2 years ago
@interface BLEModelFireBoltt : NSObject
2 years ago
/** 信号强度 */
@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