tirecheck-device-sdk 0.2.24 → 0.2.25
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 +1 -8
- package/dist/index.mjs +1 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3379,14 +3379,7 @@ const bridgeSimulator = {
|
|
|
3379
3379
|
},
|
|
3380
3380
|
createSimulatedDevice(initialData) {
|
|
3381
3381
|
const mergedData = simulatorSvc.merge(getSimulatedBridgeTemplate(), initialData);
|
|
3382
|
-
mergedData.advertisingData.macAddress = initialData.id?.split(":").map((x) => Number.parseInt(x, 16)) ?? [
|
|
3383
|
-
1,
|
|
3384
|
-
2,
|
|
3385
|
-
3,
|
|
3386
|
-
4,
|
|
3387
|
-
5,
|
|
3388
|
-
6
|
|
3389
|
-
];
|
|
3382
|
+
mergedData.advertisingData.macAddress = initialData.id?.split(":").map((x) => Number.parseInt(x, 16)).reverse() ?? [1, 2, 3, 4, 5, 6];
|
|
3390
3383
|
return mergedData;
|
|
3391
3384
|
}
|
|
3392
3385
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -3372,14 +3372,7 @@ const bridgeSimulator = {
|
|
|
3372
3372
|
},
|
|
3373
3373
|
createSimulatedDevice(initialData) {
|
|
3374
3374
|
const mergedData = simulatorSvc.merge(getSimulatedBridgeTemplate(), initialData);
|
|
3375
|
-
mergedData.advertisingData.macAddress = initialData.id?.split(":").map((x) => Number.parseInt(x, 16)) ?? [
|
|
3376
|
-
1,
|
|
3377
|
-
2,
|
|
3378
|
-
3,
|
|
3379
|
-
4,
|
|
3380
|
-
5,
|
|
3381
|
-
6
|
|
3382
|
-
];
|
|
3375
|
+
mergedData.advertisingData.macAddress = initialData.id?.split(":").map((x) => Number.parseInt(x, 16)).reverse() ?? [1, 2, 3, 4, 5, 6];
|
|
3383
3376
|
return mergedData;
|
|
3384
3377
|
}
|
|
3385
3378
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tirecheck-device-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.25",
|
|
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",
|