JavaScript
Need help with BLE_MiniProgram?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.
lixiantai

Description

微信小程序 蓝牙Demo

140 Stars 61 Forks 2 Commits 3 Opened issues

Services available

Need anything else?

原帖地址

https://www.cnblogs.com/HintLee/p/9499423.html

说明

鸽了很久终于来完善一下,此源码适用于微信小程序。之前研究小程序的蓝牙踩了不少坑,重新提取了相关内容作了一个 Demo,有搜索设备、连接设备、写入内容、notify 读取内容等功能,在 BLE 串口透传模块上测试通过。

注意

search 页面基本不需改动可直接使用,device 页面中固定了 services 和 characteristics,发送和接收都是字符串,根据需求修改即可。

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.