BreezeDelagete Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | Breeze.h |
– breeze:didReceivedData:msgId:error:
required method
收到蓝牙设备的数据
- (void)breeze:(Breeze *)breeze didReceivedData:(NSData *)data msgId:(NSInteger)msgId error:(NSError *)error
Parameters
breeze |
Breeze对象 |
---|---|
data |
数据 |
msgId |
消息id,对应发送数据的消息id |
error |
错误信息 |
Discussion
收到蓝牙设备的数据
Declared In
Breeze.h
– breeze:didCentralStateChanged:
required method
手机蓝牙状态变化
- (void)breeze:(Breeze *)breeze didCentralStateChanged:(CBManagerState)state
Parameters
breeze |
Breeze对象 |
---|---|
state |
状态描述 |
Discussion
手机蓝牙状态变化
Declared In
Breeze.h
– breeze:didPeripheralStateChanged:
required method
蓝牙设备状态变化
- (void)breeze:(Breeze *)breeze didPeripheralStateChanged:(CBPeripheralState)state
Parameters
breeze |
Breeze对象 |
---|---|
state |
状态描述 |
Discussion
蓝牙设备状态变化
Declared In
Breeze.h
– breeze:didConnectPeripheral:error:
required method
连接结果通知
- (void)breeze:(Breeze *)breeze didConnectPeripheral:(CBPeripheral *)peripheral error:(NSError *)error
Parameters
breeze |
Breeze对象 |
---|---|
peripheral |
已连接的peripheral对象 |
error |
错误信息 |
Discussion
连接结果通知
Declared In
Breeze.h
– breeze:didDiscoverPeripheral:advertisementData:RSSI:extra:
required method
扫描周边设备的回调接口
- (void)breeze:(Breeze *)breeze didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI extra:(NSDictionary *)extra
Parameters
breeze |
Breeze对象 |
---|---|
peripheral |
扫描到的peripheral对象 |
advertisementData |
广播数据 |
RSSI |
RSSI数据 |
extra |
附加数据字典,包含mac地址,是否支持encrypt,是否支持ota等 |
Discussion
扫描周边设备的回调接口
Declared In
Breeze.h