QNBleKitchenListener
Bluetooth kitchen scale Device link status Measurement data monitor
onBleKitchenConnecting
Connecting to the device is in progress, after calling the connected device, it will call back immediately
Parameters
name | Types of | Explanation |
---|---|---|
device | QNBleKitchenDevice | Kitchen scale equipment object |
onBleKitchenConnected
The device is successfully connected Will call back the device object
onBleKitchenDisconnected
Bluetooth disconnected
onBleKitchenConnectError
A connection error occurred
Parameters
name | Types of | Explanation |
---|---|---|
device | QNBleKitchenDevice | Kitchen scale equipment object |
errorCode | int | Error code reference attached table-error code, the second parameter of IOS uses system error object |
onGetBleKitchenWeight
Bluetooth kitchen scale measurement data callback
Parameters
name | Types of | Explanation |
---|---|---|
device | QNBleKitchenDevice | Kitchen scale equipment object |
weight | double | Weight at the end of the scale, the value is the weight in g |
onBleKitchenStateChange
Bluetooth kitchen scale measurement data callback
Parameters
name | Types of | Explanation |
---|---|---|
device | QNBleKitchenDevice | Kitchen scale equipment object |
scaleState | int | Refer to Scale Events |