智方网络_吖荣 před 4 roky
rodič
revize
f5c8e2f487
2 změnil soubory, kde provedl 7 přidání a 0 odebrání
  1. 5 0
      src/pages/test/index.vue
  2. 2 0
      src/utils/bluetooth.js

+ 5 - 0
src/pages/test/index.vue

@@ -0,0 +1,5 @@
+<template>
+	<div>
+		<h1>Hello WOrld</h1>
+	</div>
+</template>

+ 2 - 0
src/utils/bluetooth.js

@@ -122,6 +122,8 @@ export default {
     dataView.setUint8(6, "0x0a");
     dataView.setUint8(7, $CheckSum);
     // 向低功耗蓝牙设备特征值中写入二进制数据
+    console.log(buffer);
+    console.log(dataView);
 
     wx.writeBLECharacteristicValue({
       deviceId: deviceId,