UNPKG

mcblekit

Version:

该微信小程序开源代码库用于管理微信小程序中的蓝牙功能。支持初始化蓝牙适配器、扫描和连接蓝牙设备、获取设备服务和特征、监听特征值变化、读写特征值以及断开连接等操作。通过设置不同的监听器,可灵活处理蓝牙连接状态变化、设备发现、服务和特征发现等事件,适用于需要与蓝牙设备进行数据交互的微信小程序开发场景。This WeChat mini program open-source code library is used to manage the Bluetooth function in WeChat mini

30 lines (28 loc) 1.74 kB
{ "name": "mcblekit", "version": "1.0.10", "description": "该微信小程序开源代码库用于管理微信小程序中的蓝牙功能。支持初始化蓝牙适配器、扫描和连接蓝牙设备、获取设备服务和特征、监听特征值变化、读写特征值以及断开连接等操作。通过设置不同的监听器,可灵活处理蓝牙连接状态变化、设备发现、服务和特征发现等事件,适用于需要与蓝牙设备进行数据交互的微信小程序开发场景。This WeChat mini program open-source code library is used to manage the Bluetooth function in WeChat mini programs. Support initialization of Bluetooth adapters, scanning and connecting Bluetooth devices, obtaining device services and features, monitoring feature value changes, reading and writing feature values, and disconnecting. By setting different listeners, it is possible to flexibly handle events such as changes in Bluetooth connection status, device discovery, service and feature discovery, which is suitable for WeChat mini program development scenarios that require data interaction with Bluetooth devices. ", "main": "src/MCBleKit.js", "scripts": { }, "keywords": ["wechat-miniprogram", "Bluetooth Manager", "components"], "author": { "name": "MorganChen", "url": "https://github.com/json031" }, "license": "MIT", "type": "commonjs", "repository": { "type": "git", "url": "https://github.com/Json031/MCBleKit.git" }, "bugs": { "url": "https://github.com/Json031/MCBleKit/issues" }, "homepage": "https://github.com/Json031/MCBleKit/blob/main/README.md", "publishConfig": { "registry": "https://registry.npmjs.org/" }, "dependencies": {}, "ignore": [] }