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