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
50 lines
1.5 KiB
![]()
2 years ago
|
//
|
||
![]()
1 year 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>
|
||
![]()
1 year ago
|
#import "BLEConstFireBoltt.h"
|
||
|
#import "BlueToothEume_FireBoltt.h"
|
||
![]()
2 years ago
|
|
||
![]()
1 year 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
|