# wx.setBLEMTU(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

Negotiating Bluetooth Low Power Maximum Transmission Unit (Maximum Transmission Unit, MAN)Need in. wx.createBLEConnection Called after successful invocation. Android only 5.1 The above version is valid, iOS Not supported due to system limitations.

# parameter

# Object object

attribute type Default values Required Introductions
deviceId string yes Bluetooth Device id
Man number yes Maximum transmission unit. Set the scope to (22,512) Interval, unit bytes
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
Man number Final negotiated MAN Value, consistent with the passed parameter. Android Client 8.0.9 Start supporting.

# object.fail callback

# parameter
# Object res
attribute type Introductions
Man number Final negotiated MAN Value. This parameter is not available if the negotiation fails. Android Client 8.0.9 Start supporting.