tirecheck-device-sdk 0.2.25 → 0.2.26
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 +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3277,7 +3277,10 @@ const torqueWrench = {
|
|
|
3277
3277
|
},
|
|
3278
3278
|
async disconnect(deviceId, reason) {
|
|
3279
3279
|
store.setState(deviceId, "disconnecting");
|
|
3280
|
-
|
|
3280
|
+
try {
|
|
3281
|
+
await torqueWrenchService.stopJob(deviceId);
|
|
3282
|
+
} catch {
|
|
3283
|
+
}
|
|
3281
3284
|
await torqueWrenchPromiseQueue.clearQueue(deviceId, "Previous pending commands aborted");
|
|
3282
3285
|
await bluetooth.disconnect(deviceId);
|
|
3283
3286
|
store.setState(deviceId, void 0, reason ?? "manualDisconnection");
|
package/dist/index.mjs
CHANGED
|
@@ -3270,7 +3270,10 @@ const torqueWrench = {
|
|
|
3270
3270
|
},
|
|
3271
3271
|
async disconnect(deviceId, reason) {
|
|
3272
3272
|
store.setState(deviceId, "disconnecting");
|
|
3273
|
-
|
|
3273
|
+
try {
|
|
3274
|
+
await torqueWrenchService.stopJob(deviceId);
|
|
3275
|
+
} catch {
|
|
3276
|
+
}
|
|
3274
3277
|
await torqueWrenchPromiseQueue.clearQueue(deviceId, "Previous pending commands aborted");
|
|
3275
3278
|
await bluetooth.disconnect(deviceId);
|
|
3276
3279
|
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.
|
|
3
|
+
"version": "0.2.26",
|
|
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",
|