tirecheck-device-sdk 0.2.31 → 0.2.33
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 +3 -4
- package/dist/index.mjs +3 -4
- 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);
|
|
@@ -3078,9 +3080,6 @@ async function setSensorDisplayId(deviceId, oldSensorId, newSensorId) {
|
|
|
3078
3080
|
const config = await getSensorConfiguration(deviceId);
|
|
3079
3081
|
const newConfig = config.replace(/^.{8}/, newSensorId);
|
|
3080
3082
|
await flexiGaugeTpmsCommands.vdaSendConfiguration(deviceId, newConfig);
|
|
3081
|
-
if (newSensorId !== "00000000") {
|
|
3082
|
-
await findSensor(deviceId, newSensorId);
|
|
3083
|
-
}
|
|
3084
3083
|
}
|
|
3085
3084
|
async function getSeed(deviceId, sensorId) {
|
|
3086
3085
|
try {
|
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);
|
|
@@ -3071,9 +3073,6 @@ async function setSensorDisplayId(deviceId, oldSensorId, newSensorId) {
|
|
|
3071
3073
|
const config = await getSensorConfiguration(deviceId);
|
|
3072
3074
|
const newConfig = config.replace(/^.{8}/, newSensorId);
|
|
3073
3075
|
await flexiGaugeTpmsCommands.vdaSendConfiguration(deviceId, newConfig);
|
|
3074
|
-
if (newSensorId !== "00000000") {
|
|
3075
|
-
await findSensor(deviceId, newSensorId);
|
|
3076
|
-
}
|
|
3077
3076
|
}
|
|
3078
3077
|
async function getSeed(deviceId, sensorId) {
|
|
3079
3078
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tirecheck-device-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.33",
|
|
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",
|