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.
44 lines
1.0 KiB
44 lines
1.0 KiB
![]()
2 years ago
|
//
|
||
|
// BLEModel.m
|
||
|
// BluetoothDemo
|
||
|
//
|
||
|
// Created by mac on 17/3/9.
|
||
|
// Copyright © 2017年 . All rights reserved.
|
||
|
//
|
||
|
|
||
![]()
1 year ago
|
#import "BLEModelFireBoltt.h"
|
||
![]()
2 years ago
|
|
||
![]()
1 year ago
|
@implementation BLEModelFireBoltt
|
||
![]()
2 years ago
|
|
||
|
/**
|
||
|
构造一个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 {
|
||
|
self = [super init];
|
||
|
|
||
|
if (self) {
|
||
|
|
||
|
self.central = central;
|
||
|
self.peripheral = peripheral;
|
||
|
self.advertisementData = advertisementData;
|
||
|
self.RSSI = RSSI;
|
||
|
self.UUIDString = UUIDString;
|
||
|
self.MACString = MACString;
|
||
|
|
||
|
}
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
@end
|