# wx.getBLEDeviceRSSI(Object object)
Start from base library version 2.11.0. Please remaining backward compatible.
with Promise style call: Supported
Mini Program plugin: Support, need to Mini Program base library version no less than 2.11.0
Get the signal strength of a Bluetooth low-power device (Received Signal Strength Indication, RSSI)。
# parameter
# Object object
attribute | type | Default values | Required | Introductions |
---|---|---|---|---|
deviceId | string | yes | Bluetooth Device id | |
success | function | no | Interface calls the successful callback function | |
fail | function | no | Interface calls failed callback functions | |
complete | function | no | Callback function at the end of an interface call (both successful and unsuccessful calls are executed) |
# object.success callback
# parameter
# Object res
attribute | type | Introductions |
---|---|---|
RSSI | Number | Signal strength, unit dBm |