QNBleKitchenDevice
Yolanda kitchen scale equipment object, kitchen scale equipment is divided into two types: broadcast equipment and Bluetooth equipment.
The broadcast kitchen scale is a device that does not need to be connected and obtains relevant data through the broadcast sent by the receiving device. The scale is different from the ordinary Bluetooth scale, the difference is that when the ordinary Bluetooth scale scans the surrounding device information, it can initiate a connection to a surrounding device, so you can choose whether to stop scanning the surrounding device information without affecting the connected device To obtain relevant measurement information.
However, the broadcast kitchen scale analyzes related measurement information by acquiring broadcast data from surrounding devices, so there is no need to connect a device. Therefore, if the scanning of the surrounding equipment is stopped during the measurement process using the broadcast scale, it means that the measurement data of this time cannot be obtained.
The Bluetooth kitchen scale is a device that is almost identical to the ordinary Bluetooth scale in the use process. When using the Bluetooth kitchen scale, you need to scan and find the external device first, and then initiate a connection. After the link is successful, the Bluetooth kitchen scale will actively upload the weighing terminal data, which contains a series of data information such as the weighing terminal weight, unit, and whether to tare or not.
Attributes
name | Types of | Explanation |
---|---|---|
mac | String | The MAC address and SDK will be parsed according to the scanned broadcast information. On the same device, Android and IOS will return the same result. Unique for each device |
name | String | The model name, the SDK will identify the scanned device model, if it cannot be identified, it will return a default model name, Scale |
modeId | String | Model identification |
RSSI | int | The signal strength is generally between 0 and 100. The smaller the value, the greater the signal strength. The same device may be called back multiple times. The value of the signal strength may be different for each callback. |
unit | int | The unit currently displayed on the scale 10 is g, default value 11 to ml 12 to oz 13 to lb:oz 14 to milk ml |
weight | double | The weight value displayed on the current scale body, the default unit is g |
isPeel | boolean | Whether the current scale is peeled, true is peeled |
isNegative | boolean | Whether the current scale is negative weight, true is negative weight |
isOverload | boolean | Whether the current scale is overloaded, true is overloaded |
isBluetooth | boolean | Is the current scale a Bluetooth kitchen scale |
isStable | boolean | Measure whether the weight is stable, effective for Bluetooth kitchen scales |
bluetoothName | String | Bluetooth kitchen scale Bluetooth name |