ECellBluetoothManager Class Reference
Inherits from | NSObject |
---|---|
Declared in | ECellBluetoothManager.h |
Other Methods
delegate
设置代理 | Setting up the agent
@property (nonatomic, weak) id<ECellBluetoothDelegate> delegate
Discussion
设置代理 | Setting up the agent
Declared In
ECellBluetoothManager.h
centralManager
蓝牙管理中心 | Bluetooth Management Center
@property (nonatomic, strong) CBCentralManager *centralManager
Discussion
蓝牙管理中心 | Bluetooth Management Center
Declared In
ECellBluetoothManager.h
currenPeripheral
外围设备 | Peripherals
@property (nullable, nonatomic, strong) CBPeripheral *currenPeripheral
Discussion
外围设备 | Peripherals
Declared In
ECellBluetoothManager.h
poweredOn
蓝牙是否开启 | Is Bluetooth enabled?
@property (nonatomic, assign, readonly) BOOL poweredOn
Discussion
蓝牙是否开启 | Is Bluetooth enabled?
Declared In
ECellBluetoothManager.h
connected
蓝牙是否连接 | Bluetooth is connected
@property (nonatomic, assign, readonly) BOOL connected
Discussion
蓝牙是否连接 | Bluetooth is connected
Declared In
ECellBluetoothManager.h
rssiNum
设置扫描过滤信号弱的设备 默认值 80 大于80会被过滤 Set the device with weak scan filtering signal. Default value 80 is greater than 80 will be filtered.
@property (nonatomic, assign) NSInteger rssiNum
Discussion
设置扫描过滤信号弱的设备 默认值 80 大于80会被过滤 Set the device with weak scan filtering signal. Default value 80 is greater than 80 will be filtered.
Declared In
ECellBluetoothManager.h
commandTimeOutNumber
发送指令超时时长 默认5秒 Send command timeout defaults to 5 seconds by default
@property (nonatomic, assign) NSInteger commandTimeOutNumber
Discussion
发送指令超时时长 默认5秒 Send command timeout defaults to 5 seconds by default
Declared In
ECellBluetoothManager.h
– startScan
开始扫描 | Start scanning
- (void)startScan
Discussion
开始扫描 | Start scanning
Declared In
ECellBluetoothManager.h
– stopScan
停止扫描 | Stop scanning
- (void)stopScan
Discussion
停止扫描 | Stop scanning
Declared In
ECellBluetoothManager.h
– connectDeviceWithModel:
选择外围设备连接 | Select peripheral connection
- (void)connectDeviceWithModel:(ECellPeripheralModel *)model
Parameters
model |
ECellPeripheralModel 对象 | ECellPeripheralModel object |
---|
Declared In
ECellBluetoothManager.h
– cancelCurrentPeripheralConnection
断开当前外围设备的连接 (将会清空设备信息不再重连) | Disconnect the current peripheral device (The device information will be cleared and will not be reconnected)
- (void)cancelCurrentPeripheralConnection
Discussion
断开当前外围设备的连接 (将会清空设备信息不再重连) | Disconnect the current peripheral device (The device information will be cleared and will not be reconnected)
Declared In
ECellBluetoothManager.h
– registrationServices:IsReconnect:
注册SDK服务 | Register for SDK service
- (void)registrationServices:(BOOL)outputSdkLog IsReconnect:(BOOL)isReconnect
Parameters
outputSdkLog |
是否输出蓝牙协议运行日志 (默认NO) | Whether to output the Bluetooth protocol running log (default NO) |
---|---|
isReconnect |
是否需要重连机制 (默认YES) | Whether a reconnect mechanism is required (default YES) |
Discussion
注册SDK服务 | Register for SDK service
Declared In
ECellBluetoothManager.h
+ shareInstance
初始化蓝牙管理中心对象 Initialize the Bluetooth Management Center object
+ (__kindof ECellBluetoothManager *)shareInstance
Return Value
HPlusBluetoothManager
Declared In
ECellBluetoothManager.h