@gaidalou/control 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46204,8 +46204,8 @@ const dS = "MYESP32", fS = ["000000ff-0000-1000-8000-00805f9b34fb"], pS = {
46204
46204
  // 机场重启
46205
46205
  13: { type: "page", value: "/command/home/vidDispatch", name: "多屏监控" },
46206
46206
  // 多屏监控 ?
46207
- 14: { type: "action", value: "birdRepellentAlert", name: "驱鸟警戒" },
46208
- // 驱鸟警戒 ?
46207
+ 14: { type: "action", value: "quickImageScan", name: "快速扫图" },
46208
+ // 快速扫图 ?
46209
46209
  15: { type: "page", value: "/command/home/vidDispatch", name: "视频调度" },
46210
46210
  // 视频调度 ?
46211
46211
  16: { type: "action", value: "deviceSelection", name: "设备切换" },
@@ -46561,7 +46561,7 @@ const Tc = class Tc {
46561
46561
  */
46562
46562
  constructor(t) {
46563
46563
  let n = "", o = "", a = !1, r = "";
46564
- t && (n = t.namePreFix, o = t.serviceUUIDs, a = t.testModel, r = t.scene), this.mitt = Ti.init(), this.name = n, this.services = o, this.testModel = a, this.scene = r, this.device = null, this.deviceName = "", this.server = null, this.allServices = null, this.webBleInfos = [], this.webBleInfosObj = {}, this.version = null, this.worker = null, this.soundDiffTime = 1e3, this.soundTimer = null;
46564
+ t && (n = t.namePreFix, o = t.serviceUUIDs, a = t.testModel, r = t.scene), this.mitt = Ti.init(), this.name = n, this.services = o, this.testModel = a, this.scene = r, this.device = null, this.deviceName = "", this.server = null, this.allServices = null, this.webBleInfos = [], this.webBleInfosObj = {}, this.version = null, this.worker = null, this.soundDiffTime = 1e3, this.soundAddEndTime = null, this.soundTimer = null;
46565
46565
  }
46566
46566
  /*
46567
46567
  let device = await navigator.bluetooth.requestDevice({
@@ -46649,14 +46649,14 @@ const Tc = class Tc {
46649
46649
  code: c,
46650
46650
  value: p,
46651
46651
  source: "bluetooth"
46652
- });
46652
+ }), this.soundAddEndTime = null;
46653
46653
  };
46654
46654
  }
46655
- d = s.slice(6), this.worker.postMessage({
46655
+ this.soundAddEndTime ? (d = s.slice(6), this.worker.postMessage({
46656
46656
  soundValue: d,
46657
46657
  source: "bluetooth",
46658
46658
  isEnd: !1
46659
- }), this.soundTimer && clearTimeout(this.soundTimer), this.soundTimer = setTimeout(() => {
46659
+ })) : this.soundAddEndTime = (/* @__PURE__ */ new Date()).getTime(), this.soundTimer && clearTimeout(this.soundTimer), this.soundTimer = setTimeout(() => {
46660
46660
  this.worker.postMessage({
46661
46661
  isEnd: !0
46662
46662
  }), this.soundTimer = null;
@@ -46737,7 +46737,7 @@ const $c = class $c {
46737
46737
  }
46738
46738
  constructor(t) {
46739
46739
  let n = !1, o = "";
46740
- t && (n = t.testModel, o = t.scene), this.testModel = n, this.scene = o, this.serialPort = null, this.reader = null, this.mitt = Ti.init(), this.firstAudio = !0, this.version = null, this.timerLongData = null, this.timerLongDataFlag = null, this.animationId = null, this.worker = null, this.soundAddEndTime = null, this.soundDiffTime = 600;
46740
+ t && (n = t.testModel, o = t.scene), this.testModel = n, this.scene = o, this.serialPort = null, this.reader = null, this.mitt = Ti.init(), this.firstAudio = !0, this.version = null, this.timerLongData = null, this.timerLongDataFlag = null, this.animationId = null, this.worker = null, this.soundAddEndTime = null, this.soundDiffTime = 600, this.soundTimer = null;
46741
46741
  }
46742
46742
  async connect(t) {
46743
46743
  try {
@@ -46794,7 +46794,7 @@ const $c = class $c {
46794
46794
  let s = pS[a[4]], i = a[5], u = "";
46795
46795
  if (s === "sendToYaoKongQi" || (s === "key" && i === 255 && (this.version = ti[a[6]]), !s))
46796
46796
  return;
46797
- if (console.log("当前版本操作台", this.version, this.scene, { version: this.version, type: s, code: i }), this.version === "version3" && !this.scene) {
46797
+ if (this.version === "version3" && !this.scene) {
46798
46798
  ki.error("请传入场景类型");
46799
46799
  return;
46800
46800
  }