# wx.makeBluetoothPair(Object object)

Start from base library version 2.12.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.12.0

Bluetooth pairing interface, Android only support.

Typically, you need to specify pin The system takes over the pairing process and calls the wx.createBLEConnection You can. This interface should be used only when the developer does not want the user to enter manually pin Code and real machine verification confirmation can be used in normal working conditions.

# parameter

# Object object

attribute type Default values Required Introductions
deviceId string yes Bluetooth Device id
pin string yes pin Yards, Base 64. Format.
timeout number 20000 no Timeout, units ms
success function no Interface calls the successful callback function
fail function no Interface calls failed callback functions
complete function no Interface calls the end of the callback function (call success or failure will be executed)