tirecheck-device-sdk 0.2.25 → 0.2.27

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/index.cjs CHANGED
@@ -543,7 +543,8 @@ const deviceMeta = {
543
543
  // },
544
544
  // },
545
545
  flexiGaugeTpms: {
546
- nameRegex: /^Flexi.*TPMS.*/,
546
+ // after implementation of normal fg replace with /^Flexi.*TPMS.*/,
547
+ nameRegex: /^Flexi.*/,
547
548
  communication: {
548
549
  serviceId: "4880c12c-fdcb-4077-8920-a450d7f9b907",
549
550
  characteristicId: "fec26ec4-6d71-4442-9f81-55bc21d658d6"
@@ -3277,7 +3278,10 @@ const torqueWrench = {
3277
3278
  },
3278
3279
  async disconnect(deviceId, reason) {
3279
3280
  store.setState(deviceId, "disconnecting");
3280
- await torqueWrenchService.stopJob(deviceId);
3281
+ try {
3282
+ await torqueWrenchService.stopJob(deviceId);
3283
+ } catch {
3284
+ }
3281
3285
  await torqueWrenchPromiseQueue.clearQueue(deviceId, "Previous pending commands aborted");
3282
3286
  await bluetooth.disconnect(deviceId);
3283
3287
  store.setState(deviceId, void 0, reason ?? "manualDisconnection");
package/dist/index.mjs CHANGED
@@ -536,7 +536,8 @@ const deviceMeta = {
536
536
  // },
537
537
  // },
538
538
  flexiGaugeTpms: {
539
- nameRegex: /^Flexi.*TPMS.*/,
539
+ // after implementation of normal fg replace with /^Flexi.*TPMS.*/,
540
+ nameRegex: /^Flexi.*/,
540
541
  communication: {
541
542
  serviceId: "4880c12c-fdcb-4077-8920-a450d7f9b907",
542
543
  characteristicId: "fec26ec4-6d71-4442-9f81-55bc21d658d6"
@@ -3270,7 +3271,10 @@ const torqueWrench = {
3270
3271
  },
3271
3272
  async disconnect(deviceId, reason) {
3272
3273
  store.setState(deviceId, "disconnecting");
3273
- await torqueWrenchService.stopJob(deviceId);
3274
+ try {
3275
+ await torqueWrenchService.stopJob(deviceId);
3276
+ } catch {
3277
+ }
3274
3278
  await torqueWrenchPromiseQueue.clearQueue(deviceId, "Previous pending commands aborted");
3275
3279
  await bluetooth.disconnect(deviceId);
3276
3280
  store.setState(deviceId, void 0, reason ?? "manualDisconnection");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tirecheck-device-sdk",
3
- "version": "0.2.25",
3
+ "version": "0.2.27",
4
4
  "description": "SDK for working with various devices produced by Tirecheck via Bluetooth (CAN Bridge, Routers, Sensors, FlexiGauge, PressureStick, etc)",
5
5
  "author": "Leonid Buneev <leonid.buneev@tirecheck.com>",
6
6
  "license": "ISC",