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.

60 lines
1.0 KiB

2 years ago
//
// BluetoothDelegate.h
// BluetoothDemo
//
// Created by mac on 17/3/9.
// Copyright © 2017年 . All rights reserved.
//
#import <Foundation/Foundation.h>
#import "BLEModelFireBoltt.h"
2 years ago
@class BluetoothFireBoltt;
2 years ago
@protocol BluetoothDelegate <NSObject>
/**
@param bleModel ble模型
*/
@optional
- (void)onDiscoverToPeripheralsBleModel:(BLEModelFireBoltt *)bleModel;
2 years ago
/**
Services的委托
@param peripheral
*/
@optional
- (void)onDiscoverServices:(CBPeripheral *)peripheral;
/**
service的Characteristics的委托
@param peripheral
@param service
*/
@optional
- (void)OnDiscoverCharacteristics:(CBPeripheral *)peripheral
Service:(CBService *)service;
/**
characteristics的委托
@param peripheral
@param characteristics
*/
@optional
- (void)OnReadValueForCharacteristic:(CBPeripheral *)peripheral
characteristicsL:(CBCharacteristic *)characteristics;
@end