Breeze Class Reference

Inherits from NSObject
Declared in Breeze.h

Overview

Breeze蓝牙类

  centralManage

底层CBCentralManager对象

@property (nonatomic, strong, readonly) CBCentralManager *centralManage

Discussion

底层CBCentralManager对象

Declared In

Breeze.h

– discoverPeripheral

扫描周边的蓝牙设备,扫描结果通过BreezeDelagete的breeze:didDiscoverPeripheral:advertisementData:RSSI:extra:返回

- (void)discoverPeripheral

Discussion

扫描周边的蓝牙设备,扫描结果通过BreezeDelagete的breeze:didDiscoverPeripheral:advertisementData:RSSI:extra:返回

Declared In

Breeze.h

– stopDiscoverPeripheral

停止扫描周边的蓝牙设备

- (void)stopDiscoverPeripheral

Discussion

停止扫描周边的蓝牙设备

Declared In

Breeze.h

– connectPeripheralUseMac:

通过mac地址连接指定蓝牙设备

- (void)connectPeripheralUseMac:(NSString *)mac

Parameters

mac

蓝牙的mac地址,可以从discoverPeripheral后的回调结果中获取

Discussion

通过mac地址连接指定蓝牙设备

Declared In

Breeze.h

– disconnectPeripheral

断开已经连接的蓝牙设备

- (void)disconnectPeripheral

Discussion

断开已经连接的蓝牙设备

Declared In

Breeze.h

– isPeripheralReady

蓝牙外设是否准备就绪

- (BOOL)isPeripheralReady

Return Value

结果值

Discussion

蓝牙外设是否准备就绪

Declared In

Breeze.h

– sendData:needResponse:

发送数据到蓝牙设备

- (NSUInteger)sendData:(NSData *)data needResponse:(BOOL)needResponse

Parameters

data

待发送的数据

needResponse

此数据是否需要回复。回复的数据通过BreezeDelagete的breeze:didReceivedData:msgId:error:返回 返回

Return Value

消息id,用作上下文关联

Discussion

发送数据到蓝牙设备

Declared In

Breeze.h

– createOtaManager

创建ota升级管理器,此管理器仅支持本地ota升级。云端打通的接口封装在OtaBusiness SDK

- (BRZOtaManager *)createOtaManager

Return Value

BRZOtaManager对象

Discussion

创建ota升级管理器,此管理器仅支持本地ota升级。云端打通的接口封装在OtaBusiness SDK

Declared In

Breeze.h

– releaseOtaManager

释放ota升级管理器,会清理内部引用,回调等

- (void)releaseOtaManager

Discussion

释放ota升级管理器,会清理内部引用,回调等

Declared In

Breeze.h

– addBreezeDelagete:

- (void)addBreezeDelagete:(id<BreezeDelagete>)delegate

Parameters

delegate

BreezeDelagete

Discussion

添加BreezeDelagete

Declared In

Breeze.h

– removeBreezeDelagete:

- (void)removeBreezeDelagete:(id<BreezeDelagete>)delegate

Parameters

delegate

BreezeDelagete

Discussion

移除BreezeDelagete

Declared In

Breeze.h