@jiabaida/tools 1.1.0 → 1.1.2
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.
- package/dist/cjs/core/BleApiManager.js +1 -1
- package/dist/cjs/core/BleCmdAnalysis/BleCmdAnalysis.js +1 -1
- package/dist/cjs/core/BleCmdAnalysis/BleCmdDD.js +1 -1
- package/dist/cjs/core/BleCmdAnalysis/readAndSetParam.js +1 -1
- package/dist/cjs/core/OtaUpgrade.js +1 -1
- package/dist/cjs/core/mqttServer.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/core/BleApiManager.js +1 -1
- package/dist/esm/core/BleCmdAnalysis/BleCmdAnalysis.js +1 -1
- package/dist/esm/core/BleCmdAnalysis/BleCmdDD.js +1 -1
- package/dist/esm/core/BleCmdAnalysis/readAndSetParam.js +1 -1
- package/dist/esm/core/OtaUpgrade.js +1 -1
- package/dist/esm/core/mqttServer.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
- package/src/core/BleApiManager.js +75 -60
- package/src/core/BleCmdAnalysis/BleCmdAnalysis.js +17 -9
- package/src/core/BleCmdAnalysis/BleCmdDD.js +2 -3
- package/src/core/BleCmdAnalysis/readAndSetParam.js +13 -2
- package/src/core/OtaUpgrade.js +15 -6
- package/src/core/mqttServer.js +8 -4
- package/src/index.js +1 -0
package/src/core/mqttServer.js
CHANGED
|
@@ -259,7 +259,8 @@ export class MqttServer {
|
|
|
259
259
|
if (isLast) {
|
|
260
260
|
await sleep(300);
|
|
261
261
|
this.mqttPublish = false;
|
|
262
|
-
this.$store?.
|
|
262
|
+
this.$store?.setMqttPublish(false);
|
|
263
|
+
// this.$store?.commit('setMqttPublish', false);
|
|
263
264
|
uni.removeStorageSync && uni.removeStorageSync(`${deviceId}_mqttPublish`);
|
|
264
265
|
}
|
|
265
266
|
} catch (error) {
|
|
@@ -306,7 +307,8 @@ export class MqttServer {
|
|
|
306
307
|
if (this.publishObj.isLast) {
|
|
307
308
|
await sleep(300);
|
|
308
309
|
this.mqttPublish = false;
|
|
309
|
-
this.$store?.
|
|
310
|
+
this.$store?.setMqttPublish(false);
|
|
311
|
+
// this.$store?.commit('setMqttPublish', false);
|
|
310
312
|
uni.removeStorageSync && uni.removeStorageSync(`${this.publishObj.deviceId}_mqttPublish`);
|
|
311
313
|
}
|
|
312
314
|
}
|
|
@@ -330,7 +332,8 @@ export class MqttServer {
|
|
|
330
332
|
async writePublishInfoCmd(values) {
|
|
331
333
|
clearTimeout(this.timer);
|
|
332
334
|
this.mqttPublish = true;
|
|
333
|
-
this.$store?.
|
|
335
|
+
this.$store?.setMqttPublish(true);
|
|
336
|
+
// this.$store?.commit('setMqttPublish', true);
|
|
334
337
|
this.mqttCode = values[2];
|
|
335
338
|
let res = null;
|
|
336
339
|
this.setPassthroughType = 1;
|
|
@@ -356,7 +359,8 @@ export class MqttServer {
|
|
|
356
359
|
}
|
|
357
360
|
this.timer = setTimeout(() => {
|
|
358
361
|
this.mqttPublish = false;
|
|
359
|
-
this.$store?.
|
|
362
|
+
this.$store?.setMqttPublish(false);
|
|
363
|
+
// this.$store?.commit('setMqttPublish', false);
|
|
360
364
|
}, 30000);
|
|
361
365
|
}
|
|
362
366
|
}
|
package/src/index.js
CHANGED