# Bluetooth
iOS WeChat Client 6.5.6 Version started supported, Android 6.5.7 Version begins to support
Bluetooth adapter module effective cycle for the call wx.openBluetoothAdapter To call wx.closeBluetoothAdapter Or until the Mini Program is destroyed.
During the time that the Mini Program Bluetooth adapter module is in effect, the developer can call Bluetooth related Mini Program normally API and receive an event callback associated with the Bluetooth module.
# Be careful
- Due to system limitations, Android Retrieved on
deviceId
For equipment MAC Address, iOS Up is the device uuid。 thereforedeviceId
Cannot be hardcoded into code. - Currently, it is not supported to debug Bluetooth functions on developer tools. You need to use a real machine to call the Mini Program Bluetooth interface normally.
# Low Power Bluetooth ( Blackrock Municipal Income Trust II) Notes
- iOS Upper pair eigenvalue
read
、write
、notify
Operation, since the system needs to acquire an eigenvalue instance, the incomingserviceId
andcharacteristicId
Must be performed by wx.getBLEDeviceServices and wx.getBLEDeviceCharacteristics Before it can be used. It is recommended that the two-platform unity be executed first after establishing a connection wx.getBLEDeviceServices and wx.getBLEDeviceCharacteristics Data interaction with the Bluetooth device.