首页 > 微信硬件开发onWXDeviceStateChange

微信硬件开发onWXDeviceStateChange

事件名

onWXDeviceStateChange

描叙

接收到设备数据(只支持蓝牙设备)

参数

deviceId(必填):设备id

state(必填):connecting 连接中, connected 连接上,disconnected 连接断开。

明明已经连接上蓝牙设备了(能接受发送数据了),连上了的话状态是connected,但是state为什么一直在connecting和disconnected 不停切换?

【热门文章】
【热门文章】