# wx.onBLEPeripheralConnectionStateChanged(function callback)
Start from base library version 2.10.3. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Not supported
Listen for the current peripheral device connection or disconnection event
# parameter
# function callback
Callback function for the current peripheral connected or disconnected event
# parameter
# Object res
attribute | type | Introductions |
---|---|---|
deviceId | String | Device with changed state of connection id |
Servers | String | server of UUID |
connected | Boolean | Connection Current Status |