|
@@ -132,27 +132,31 @@ export default {
|
|
|
that.SendLedOrder("01");
|
|
|
},500);
|
|
|
setTimeout(()=>{
|
|
|
-
|
|
|
- that.SendOrder("31");
|
|
|
+
|
|
|
+ that.SendOrder('09');
|
|
|
+
|
|
|
+ that.clearLocalDatas();
|
|
|
},1000);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
- control_close = false;
|
|
|
- control_close_intv = setInterval(() => {
|
|
|
- if (!control_close) {
|
|
|
-
|
|
|
- that.SendOrder('09')
|
|
|
-
|
|
|
- if (!is_new) {
|
|
|
- that.sendConnectOneToMore('00')
|
|
|
+ if (!is_new) {
|
|
|
+ control_close = false;
|
|
|
+ control_close_intv = setInterval(() => {
|
|
|
+ if (!control_close) {
|
|
|
+
|
|
|
+ that.sendConnectOneToMore('00')
|
|
|
+ } else {
|
|
|
+
|
|
|
+ FlagOpenControl = false;
|
|
|
+ clearInterval(control_close_intv)
|
|
|
+
|
|
|
+ that.clearLocalDatas()
|
|
|
}
|
|
|
- } else {
|
|
|
-
|
|
|
- FlagOpenControl = false;
|
|
|
- clearInterval(control_close_intv)
|
|
|
-
|
|
|
- that.clearLocalDatas()
|
|
|
- }
|
|
|
- }, 2000)
|
|
|
+ }, 2000)
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
* todo:发送一对多连接
|
|
@@ -319,6 +323,7 @@ export default {
|
|
|
},
|
|
|
fail(res) {
|
|
|
Notify({type: 'danger', message: `第${$connect_count}次重新连接失败`});
|
|
|
+ game_store.setters.setGameCloseStatus(1);
|
|
|
}
|
|
|
})
|
|
|
if ($connect_count >= 3) {
|
|
@@ -463,7 +468,7 @@ export default {
|
|
|
})
|
|
|
|
|
|
let hexStr = that.ab2hex(characteristic.value);
|
|
|
-
|
|
|
+ console.log("plant监听脑机数据:", hexStr, "当前页面名称:", $this.$options.name);
|
|
|
|
|
|
if (hexStr.toUpperCase().indexOf("AADD") != -1 || hexStr.toUpperCase().indexOf("AAEE") != -1 && update_state == false) {
|
|
|
let nowTime = Math.round(new Date() / 1000);
|