tirecheck-device-sdk 0.2.69 → 0.2.70

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
@@ -1516,64 +1516,64 @@ const bridgeCommandStructures = {
1516
1516
  name: "autolearnUnknownSensors",
1517
1517
  structure: {
1518
1518
  sensor01: {
1519
- size: 8,
1520
- description: "Unknown sensor data"
1519
+ size: 13,
1520
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1521
1521
  },
1522
1522
  sensor02: {
1523
- size: 8,
1524
- description: "Unknown sensor data"
1523
+ size: 13,
1524
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1525
1525
  },
1526
1526
  sensor03: {
1527
- size: 8,
1528
- description: "Unknown sensor data"
1527
+ size: 13,
1528
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1529
1529
  },
1530
1530
  sensor04: {
1531
- size: 8,
1532
- description: "Unknown sensor data"
1531
+ size: 13,
1532
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1533
1533
  },
1534
1534
  sensor05: {
1535
- size: 8,
1536
- description: "Unknown sensor data"
1535
+ size: 13,
1536
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1537
1537
  },
1538
1538
  sensor06: {
1539
- size: 8,
1540
- description: "Unknown sensor data"
1539
+ size: 13,
1540
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1541
1541
  },
1542
1542
  sensor07: {
1543
- size: 8,
1544
- description: "Unknown sensor data"
1543
+ size: 13,
1544
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1545
1545
  },
1546
1546
  sensor08: {
1547
- size: 8,
1548
- description: "Unknown sensor data"
1547
+ size: 13,
1548
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1549
1549
  },
1550
1550
  sensor09: {
1551
- size: 8,
1552
- description: "Unknown sensor data"
1551
+ size: 13,
1552
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1553
1553
  },
1554
1554
  sensor10: {
1555
- size: 8,
1556
- description: "Unknown sensor data"
1555
+ size: 13,
1556
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1557
1557
  },
1558
1558
  sensor11: {
1559
- size: 8,
1560
- description: "Unknown sensor data"
1559
+ size: 13,
1560
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1561
1561
  },
1562
1562
  sensor12: {
1563
- size: 8,
1564
- description: "Unknown sensor data"
1563
+ size: 13,
1564
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1565
1565
  },
1566
1566
  sensor13: {
1567
- size: 8,
1568
- description: "Unknown sensor data"
1567
+ size: 13,
1568
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1569
1569
  },
1570
1570
  sensor14: {
1571
- size: 8,
1572
- description: "Unknown sensor data"
1571
+ size: 13,
1572
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1573
1573
  },
1574
1574
  sensor15: {
1575
- size: 8,
1576
- description: "Unknown sensor data"
1575
+ size: 13,
1576
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1577
1577
  }
1578
1578
  }
1579
1579
  },
@@ -2195,7 +2195,10 @@ const bridgeCommands = {
2195
2195
  },
2196
2196
  async getAutolearnUnknownSensors(deviceId) {
2197
2197
  const deviceData = bridgeTools.getBridgeFromStore(deviceId);
2198
- const result = await this.readCommand(deviceData, subCommandIds.autolearnUnknownSensors);
2198
+ const result = await this.readCommand(deviceData, subCommandIds.autolearnUnknownSensors, {
2199
+ headerLength: 5,
2200
+ footerLength: 4
2201
+ });
2199
2202
  const structurized = bridgeTools.convertBytesToStructure(
2200
2203
  bridgeCommandStructures.autolearnUnknownSensors.structure,
2201
2204
  result.data,
@@ -2276,7 +2279,7 @@ const bridgeCommands = {
2276
2279
  const deviceData = bridgeTools.getBridgeFromStore(deviceId);
2277
2280
  const result = await this.readCommand(deviceData, subCommandIds.firmwareVersion, {
2278
2281
  headerLength: 5,
2279
- footerLength: 0
2282
+ footerLength: 4
2280
2283
  });
2281
2284
  return bridgeTools.convertBytesToStructure(
2282
2285
  bridgeCommandStructures.firmwareVersion.structure,
@@ -2288,7 +2291,7 @@ const bridgeCommands = {
2288
2291
  const deviceData = bridgeTools.getBridgeFromStore(deviceId);
2289
2292
  const result = await this.readCommand(deviceData, subCommandIds.errorHistoryCounter, {
2290
2293
  headerLength: 5,
2291
- footerLength: 0
2294
+ footerLength: 4
2292
2295
  });
2293
2296
  return bridgeTools.convertBytesToStructure(
2294
2297
  bridgeCommandStructures.errorHistoryCounter.structure,
package/dist/index.mjs CHANGED
@@ -1509,64 +1509,64 @@ const bridgeCommandStructures = {
1509
1509
  name: "autolearnUnknownSensors",
1510
1510
  structure: {
1511
1511
  sensor01: {
1512
- size: 8,
1513
- description: "Unknown sensor data"
1512
+ size: 13,
1513
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1514
1514
  },
1515
1515
  sensor02: {
1516
- size: 8,
1517
- description: "Unknown sensor data"
1516
+ size: 13,
1517
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1518
1518
  },
1519
1519
  sensor03: {
1520
- size: 8,
1521
- description: "Unknown sensor data"
1520
+ size: 13,
1521
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1522
1522
  },
1523
1523
  sensor04: {
1524
- size: 8,
1525
- description: "Unknown sensor data"
1524
+ size: 13,
1525
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1526
1526
  },
1527
1527
  sensor05: {
1528
- size: 8,
1529
- description: "Unknown sensor data"
1528
+ size: 13,
1529
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1530
1530
  },
1531
1531
  sensor06: {
1532
- size: 8,
1533
- description: "Unknown sensor data"
1532
+ size: 13,
1533
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1534
1534
  },
1535
1535
  sensor07: {
1536
- size: 8,
1537
- description: "Unknown sensor data"
1536
+ size: 13,
1537
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1538
1538
  },
1539
1539
  sensor08: {
1540
- size: 8,
1541
- description: "Unknown sensor data"
1540
+ size: 13,
1541
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1542
1542
  },
1543
1543
  sensor09: {
1544
- size: 8,
1545
- description: "Unknown sensor data"
1544
+ size: 13,
1545
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1546
1546
  },
1547
1547
  sensor10: {
1548
- size: 8,
1549
- description: "Unknown sensor data"
1548
+ size: 13,
1549
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1550
1550
  },
1551
1551
  sensor11: {
1552
- size: 8,
1553
- description: "Unknown sensor data"
1552
+ size: 13,
1553
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1554
1554
  },
1555
1555
  sensor12: {
1556
- size: 8,
1557
- description: "Unknown sensor data"
1556
+ size: 13,
1557
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1558
1558
  },
1559
1559
  sensor13: {
1560
- size: 8,
1561
- description: "Unknown sensor data"
1560
+ size: 13,
1561
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1562
1562
  },
1563
1563
  sensor14: {
1564
- size: 8,
1565
- description: "Unknown sensor data"
1564
+ size: 13,
1565
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1566
1566
  },
1567
1567
  sensor15: {
1568
- size: 8,
1569
- description: "Unknown sensor data"
1568
+ size: 13,
1569
+ description: "Unknown sensor data: timestamp; ID; pressure; temperature; status; RSSI; message counter (13-byte record)"
1570
1570
  }
1571
1571
  }
1572
1572
  },
@@ -2188,7 +2188,10 @@ const bridgeCommands = {
2188
2188
  },
2189
2189
  async getAutolearnUnknownSensors(deviceId) {
2190
2190
  const deviceData = bridgeTools.getBridgeFromStore(deviceId);
2191
- const result = await this.readCommand(deviceData, subCommandIds.autolearnUnknownSensors);
2191
+ const result = await this.readCommand(deviceData, subCommandIds.autolearnUnknownSensors, {
2192
+ headerLength: 5,
2193
+ footerLength: 4
2194
+ });
2192
2195
  const structurized = bridgeTools.convertBytesToStructure(
2193
2196
  bridgeCommandStructures.autolearnUnknownSensors.structure,
2194
2197
  result.data,
@@ -2269,7 +2272,7 @@ const bridgeCommands = {
2269
2272
  const deviceData = bridgeTools.getBridgeFromStore(deviceId);
2270
2273
  const result = await this.readCommand(deviceData, subCommandIds.firmwareVersion, {
2271
2274
  headerLength: 5,
2272
- footerLength: 0
2275
+ footerLength: 4
2273
2276
  });
2274
2277
  return bridgeTools.convertBytesToStructure(
2275
2278
  bridgeCommandStructures.firmwareVersion.structure,
@@ -2281,7 +2284,7 @@ const bridgeCommands = {
2281
2284
  const deviceData = bridgeTools.getBridgeFromStore(deviceId);
2282
2285
  const result = await this.readCommand(deviceData, subCommandIds.errorHistoryCounter, {
2283
2286
  headerLength: 5,
2284
- footerLength: 0
2287
+ footerLength: 4
2285
2288
  });
2286
2289
  return bridgeTools.convertBytesToStructure(
2287
2290
  bridgeCommandStructures.errorHistoryCounter.structure,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tirecheck-device-sdk",
3
- "version": "0.2.69",
3
+ "version": "0.2.70",
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",