123456789101112131415161718192021222324252627 |
- const handle = require("./handle");
- const sonyBleCode = {
- }
- class BLE{
- constructor(){
- // this代表实例对象
- this.isInit= false;
- }
-
- async initBle(option){
- let [err,ok] = await handle(wx.openBluetoothAdapter(option));
- if(err){
- throw err;
- }
- return 0
- }
- }
- module.exports = ()=> {
- return new BLE();
- }
|