请问博主,您遇到的这个问题解决了吗?
2.4GHz广播的蓝牙不连接的情况下,能使用小程序直接发送数据进行读写吗?wx.getBluetoothDevices能搜索到2.4GHz蓝牙数据BLEPeripheralServer.addService添加服务也成功但是这款蓝牙是没有连接功能的,我想问问小程序能不能单纯地不需要连接蓝牙也能发送一些简单的命令这款蓝牙会自动接收数据,就像一些遥控器一样点击音量加减键,就能自动调节设备的音量
2022-11-11请问博主,你是怎么做数据通讯的?
BLEPeripheralServer.startAdvertising发送广播数据,如何建监听?BLEPeripheralServer.startAdvertising发送自己的广播数据只能通过manufacturerData字段吗 BLEPeripheralServer.startAdvertising发送广播数据,如何建监听?数据发送成功后只返回ok [图片] [图片]
2022-11-11为什么我广播的时只能广播一个uuid,多了第二个没有收到
蓝牙广播serviceUuids不支持四位的短serviceUuid?广播出来的数据只有长的serviceUuid 短的serviceUuid没有广播出来 kCBAdvDataIsConnectable = 1; kCBAdvDataLocalName = du; kCBAdvDataServiceUUIDs = ( "68830D01-0000-0100-0000-1400376A1B7B" ); https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/BLEPeripheralServer.startAdvertising.html
2022-10-12你好,你这个问题解决了吗
蓝牙调用wx.wgetBluetoothDevices接口返回的都是未知设备?蓝牙调用wx.wgetBluetoothDevices接口返回的都是未知设备? [图片]
2022-09-27如何过滤掉这些未知设备,只搜索出来我需要的设备
wx.getBluetoothDevices返回的name是“未知设备”现象如下: 用下面的代码,在从来没有扫描过本小程序的iOS上,扫描进入,调用对应代码,会打印出一系列的: 扫到的:未知设备 扫到的:未知设备 扫到的:未知设备 扫到的:未知设备 而关闭系统蓝牙再打开,再扫,还是如此。 而将微信后台清掉,再进入微信,进入本小程序,再扫,每个设备的名字就准确的扫描出来了。之后,就都能准确扫到了。 使用新的iOS手机能复现。 代码片段如下: wx.startBluetoothDevicesDiscovery({ services: ['FFE5'], // 只搜索含有FFE5主服务的uuid allowDuplicatesKey: false, interval: 100, success: function (res) { console.log('开启BLE发现服务成功') that.DeviceScanInterval(operType) }, fail: function (res) { } }) DeviceScanInterval: function (operType) { wx.getBluetoothDevices({ success: function (res) { console.log('在寻找设备:' + that.data.DeviceId) that.data.signalStrength = 0 var i = 0 for (; i < res.devices.length; i++) { console.log('扫到的:' + res.devices[i].name) if (res.devices[i].name == that.data.DeviceId) { console.log('已搜索到指定设备') //-------------停止蓝牙BLE扫描------------------ wx.stopBluetoothDevicesDiscovery({ complete: function () { } }, }) break } } }, fail: function (res) { console.log(res) that.data.signalStrength = 0 }, }) }
2022-09-27query这个传参我是用json格式传参的,但是说我参数有误,如果这个参数我有带中文的,我需要怎么传??
URL Link获取小程序 URL Link中 query的传参格式要怎么传?
2022-04-19