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.3 KiB
60 lines
1.3 KiB
![]()
2 years ago
|
//
|
||
|
// BluetoothDataSource.h
|
||
|
// BluetoothDemo
|
||
|
//
|
||
|
// Created by mac on 17/3/13.
|
||
|
// Copyright © 2017年 . All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import <Foundation/Foundation.h>
|
||
![]()
1 year ago
|
#import "BlueToothEume_FireBoltt.h"
|
||
![]()
2 years ago
|
|
||
![]()
1 year ago
|
@class BluetoothFireBoltt;
|
||
![]()
2 years ago
|
|
||
|
@protocol BluetoothDataSource <NSObject>
|
||
|
|
||
|
/**
|
||
|
蓝牙指令成功回调
|
||
|
|
||
|
@param manager 蓝牙管理器
|
||
|
@param sid 请求需要
|
||
|
@param data 返回数据
|
||
|
@param cmdId 请求类型
|
||
|
*/
|
||
![]()
1 year ago
|
- (void)bluetoothManager:(BluetoothFireBoltt *)manager
|
||
![]()
2 years ago
|
sequenceID:(NSInteger)sid
|
||
|
didCompleteWithData:(id)data
|
||
![]()
1 year ago
|
cmdId:(BleCMD_FireBoltt)cmdId;
|
||
![]()
2 years ago
|
|
||
|
|
||
|
/**
|
||
|
蓝牙指令失败回调
|
||
|
|
||
|
@param manager 蓝牙管理器
|
||
|
@param sid 请求需要
|
||
|
@param data 返回数据
|
||
|
@param cmdId 请求类型
|
||
|
*/
|
||
![]()
1 year ago
|
- (void)bluetoothManager:(BluetoothFireBoltt *)manager
|
||
![]()
2 years ago
|
sequenceID:(NSInteger)sid
|
||
|
didErrorWithData:(id)data
|
||
![]()
1 year ago
|
cmdId:(BleCMD_FireBoltt)cmdId;
|
||
![]()
2 years ago
|
|
||
|
|
||
|
/**
|
||
|
蓝牙指令超时回调
|
||
|
|
||
|
@param manager 蓝牙管理器
|
||
|
@param sid 请求需要
|
||
|
@param data 返回数据
|
||
|
@param cmdId 请求类型
|
||
|
*/
|
||
![]()
1 year ago
|
- (void)bluetoothManager:(BluetoothFireBoltt *)manager
|
||
![]()
2 years ago
|
sequenceID:(NSInteger)sid
|
||
|
didTimeOutWithData:(id)data
|
||
![]()
1 year ago
|
cmdId:(BleCMD_FireBoltt)cmdId;
|
||
![]()
2 years ago
|
|
||
|
|
||
|
|
||
|
@end
|