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.
 
 
 

43 lines
1.0 KiB

//
// BLEModel.m
// BluetoothDemo
//
// Created by mac on 17/3/9.
// Copyright © 2017年 . All rights reserved.
//
#import "BLEModel.h"
@implementation BLEModel
/**
构造一个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