QNBleConnectionChangeListener

Bluetooth connection change monitoring interface

onConnecting

Connected device is in progress, after calling the connected device, it will call back immediately

Parameters

name Types of Explanation
device QNBleDevice Bluetooth device object with state change

onConnected

The device is successfully connected Will call back the device object

onServiceSearchComplete

The device's service search is completed, and it will be called after onConnected under normal circumstances

onStartInteracting

The device starts to interact, which is normally called after onServiceSearchComplete

onDisconnecting

Disconnecting, when calling disconnect, it will call back immediately

onDisconnected

Bluetooth disconnected

onConnectError

A connection error has occurred

Parameters

name Types of Explanation
device QNBleDevice Bluetooth device object
errorCode int Error code reference attached table-error code, the second parameter of IOS uses system error object

results matching ""

    No results matching ""