ECellBluetoothDelegate Protocol Reference

Conforms to NSObject
Declared in ECellBluetoothDelegate.h

– bluetoothManager:didUpdateState:

蓝牙管理状态 | Bluetooth management status

- (void)bluetoothManager:(ECellBluetoothManager *)manager didUpdateState:(ECell_BLE_MANAGER_STATE)state

Parameters

manager

HPlus蓝牙管理中心 | HPlus Bluetooth Management Center

state

状态 | Status

Declared In

ECellBluetoothDelegate.h

– bluetoothManager:allDevices:otaDevices:

扫描所有外围设备 | Scan all peripherals

- (void)bluetoothManager:(ECellBluetoothManager *)manager allDevices:(NSArray<ECellPeripheralModel*> *)allDevices otaDevices:(NSArray<ECellPeripheralModel*> *)otaDevices

Parameters

manager

HPlus蓝牙管理中心 | HPlus Bluetooth Management Center

allDevices

扫描所有外围设备(包括OTA设备集合) | Scan all peripherals (including OTA device collections)

otaDevices

OTA 设备集合 | OTA Device Collection

Declared In

ECellBluetoothDelegate.h

– bluetoothManager:centerManager:didConnectPeripheral:isOatMode:

连接设备成功回调 | Connected device successfully callback

- (void)bluetoothManager:(ECellBluetoothManager *)manager centerManager:(CBCentralManager *)centerManager didConnectPeripheral:(CBPeripheral *)peripheral isOatMode:(BOOL)isOtaMode

Parameters

manager

HPlus蓝牙管理中心 | HPlus Bluetooth Management Center

centerManager

蓝牙管理中心 | Bluetooth Management Center

peripheral

外围设备 | Peripherals

isOtaMode

连接是否在OTA模式 | Is the connection in OTA mode?

Declared In

ECellBluetoothDelegate.h

– bluetoothManager:connectPeripheralError:

连接设备错误回调,当解绑设备断开连接时不会回调此方法 Connection Device Error Callback,This method is not called back when the unbound device is disconnected.

- (void)bluetoothManager:(ECellBluetoothManager *)manager connectPeripheralError:(NSError *)error

Parameters

manager

HPlus蓝牙管理中心 | HPlus Bluetooth Management Center

error

错误信息 | Error message

Declared In

ECellBluetoothDelegate.h

– bluetoothManager:centerManager:disConnectPeripheral:isOatMode:

设备断开连接回调 | Device disconnect callback

- (void)bluetoothManager:(ECellBluetoothManager *)manager centerManager:(CBCentralManager *)centerManager disConnectPeripheral:(CBPeripheral *)peripheral isOatMode:(BOOL)isOtaMode

Parameters

manager

HPlus蓝牙管理中心 | HPlus Bluetooth Management Center

centerManager

蓝牙管理中心 | Bluetooth Management Center

peripheral

外围设备 | Peripherals

isOtaMode

连接是否在OTA模式 | Is the connection in OTA mode?

Declared In

ECellBluetoothDelegate.h