tirecheck-device-sdk 0.2.32 → 0.2.34
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 +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2203,12 +2203,14 @@ async function bridgeConfigurationDifference(original, change) {
|
|
|
2203
2203
|
"customerPressureThresholds",
|
|
2204
2204
|
"customerTemperatureThresholds",
|
|
2205
2205
|
"customerImbalanceThresholds",
|
|
2206
|
-
"pressuresPerAxle"
|
|
2206
|
+
"pressuresPerAxle",
|
|
2207
|
+
"autolearnSettings"
|
|
2207
2208
|
];
|
|
2208
2209
|
const differentProps = [];
|
|
2209
2210
|
const originalAny = original;
|
|
2210
2211
|
const changeAny = change;
|
|
2211
2212
|
for (const prop of propertiesToCheck) {
|
|
2213
|
+
if (!originalAny[prop] || !changeAny[prop]) continue;
|
|
2212
2214
|
for (const key in changeAny[prop]) {
|
|
2213
2215
|
if (originalAny[prop][key] !== changeAny[prop][key] || originalAny[prop].isFactory) {
|
|
2214
2216
|
differentProps.push(prop);
|
|
@@ -2362,6 +2364,9 @@ async function setConfiguration(deviceId, bridgeConfiguration) {
|
|
|
2362
2364
|
if (configurationValidation.differences.includes("pressuresPerAxle")) {
|
|
2363
2365
|
await bridgeCommands.setPressuresPerAxle(deviceId, bridgeConfiguration.pressuresPerAxle);
|
|
2364
2366
|
}
|
|
2367
|
+
if (configurationValidation.differences.includes("autolearnSettings")) {
|
|
2368
|
+
await bridgeCommands.setAutoLearnSettings(deviceId, bridgeConfiguration.autolearnSettings);
|
|
2369
|
+
}
|
|
2365
2370
|
}
|
|
2366
2371
|
async function setVehicle(deviceId, tcVehicle) {
|
|
2367
2372
|
const currentTcVehicle = await getVehicle(deviceId);
|
package/dist/index.mjs
CHANGED
|
@@ -2196,12 +2196,14 @@ async function bridgeConfigurationDifference(original, change) {
|
|
|
2196
2196
|
"customerPressureThresholds",
|
|
2197
2197
|
"customerTemperatureThresholds",
|
|
2198
2198
|
"customerImbalanceThresholds",
|
|
2199
|
-
"pressuresPerAxle"
|
|
2199
|
+
"pressuresPerAxle",
|
|
2200
|
+
"autolearnSettings"
|
|
2200
2201
|
];
|
|
2201
2202
|
const differentProps = [];
|
|
2202
2203
|
const originalAny = original;
|
|
2203
2204
|
const changeAny = change;
|
|
2204
2205
|
for (const prop of propertiesToCheck) {
|
|
2206
|
+
if (!originalAny[prop] || !changeAny[prop]) continue;
|
|
2205
2207
|
for (const key in changeAny[prop]) {
|
|
2206
2208
|
if (originalAny[prop][key] !== changeAny[prop][key] || originalAny[prop].isFactory) {
|
|
2207
2209
|
differentProps.push(prop);
|
|
@@ -2355,6 +2357,9 @@ async function setConfiguration(deviceId, bridgeConfiguration) {
|
|
|
2355
2357
|
if (configurationValidation.differences.includes("pressuresPerAxle")) {
|
|
2356
2358
|
await bridgeCommands.setPressuresPerAxle(deviceId, bridgeConfiguration.pressuresPerAxle);
|
|
2357
2359
|
}
|
|
2360
|
+
if (configurationValidation.differences.includes("autolearnSettings")) {
|
|
2361
|
+
await bridgeCommands.setAutoLearnSettings(deviceId, bridgeConfiguration.autolearnSettings);
|
|
2362
|
+
}
|
|
2358
2363
|
}
|
|
2359
2364
|
async function setVehicle(deviceId, tcVehicle) {
|
|
2360
2365
|
const currentTcVehicle = await getVehicle(deviceId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tirecheck-device-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.34",
|
|
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",
|