开发者文档
小程序
快速入门
能力
开发
设计
经营
社区
“/”唤起搜索
控制台
登录
开发
教程
框架
组件
JS API
服务端 OpenAPI
行业插件
开发工具
更新日志
JS API 列表
基础
TTML
网络
媒体
地图
文件
数据缓存
地理位置
设备
网络状态
系统信息
Wi-Fi
加速度计
罗盘
拨打电话
扫码
剪贴板
屏幕
陀螺仪
加密
短信
日历
振动
性能
蓝牙
tt.openBluetoothAdapter
tt.closeBluetoothAdapter
tt.onBluetoothAdapterStateChange
tt.offBluetoothAdapterStateChange
tt.startBluetoothDevicesDiscovery
tt.stopBluetoothDevicesDiscovery
tt.onBluetoothDeviceFound
tt.getConnectedBluetoothDevices
tt.createBLEConnection
tt.closeBLEConnection
tt.onBLEConnectionStateChange
tt.offBLEConnectionStateChange
tt.getBLEDeviceCharacteristics
tt.writeBLECharacteristicValue
tt.readBLECharacteristicValue
tt.onBLECharacteristicValueChange
tt.offBLECharacteristicValueChange
tt.notifyBLECharacteristicValueChange
tt.getBluetoothAdapterState
tt.getBluetoothDevices
tt.getBLEMTU
tt.getBLEDeviceRSSI
tt.getBLEDeviceServices
tt.offBluetoothDeviceFound
画布
界面
页面导航
开放接口
行业开放
第三方平台
其它
生活服务(即将废弃)
开发
/
JS API
/
设备
/
蓝牙
/
tt.notifyBLECharacteristicValueChange
tt.notifyBLECharacteristicValueChange
收藏
我的收藏
基础库 1.0.0 开始支持本方法,这是一个异步方法。
启用或禁用低功耗蓝牙设备特征值变化时的notify功能,订阅特征值。注意:必须设备的特征值支持 notify 或 indicate 才可以成功调用。
前提条件