Skip to content

Commit

Permalink
v1.8.1
Browse files Browse the repository at this point in the history
+ Fix battery data being sent as "ArrayBuffer" instead of integer
  • Loading branch information
JovannMC committed May 2, 2024
1 parent 40c2268 commit f059647
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "haritorax-interpreter",
"version": "1.8.0",
"version": "1.8.1",
"homepage": "https://github.com/JovannMC/haritorax-interpreter",
"repository": "https://github.com/JovannMC/haritorax-interpreter",
"bugs": {
Expand Down
5 changes: 4 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ if (mode === "bt" || mode === "bluetooth") {

setInterval(async () => {
console.log("Active trackers for BT:", device.getActiveTrackers());
console.log("Info: ", await device.getDeviceInfo("HaritoraXW-(SERIAL)"));
console.log("Info: ", await device.getDeviceInfo("HaritoraXW-A35EM5"));
console.log("Mag: ", await device.getTrackerMag("HaritoraXW-A35EM5"));
console.log("Battery: ", await device.getBatteryInfo("HaritoraXW-A35EM5"));
}, 5000);

/*setInterval(async () => {
Expand All @@ -34,6 +36,7 @@ if (mode === "bt" || mode === "bluetooth") {
console.log("Active trackers for GX:", device.getActiveTrackers());
console.log("Device info:", await device.getDeviceInfo("rightAnkle"));
console.log("Device battery:", await device.getBatteryInfo("rightAnkle"));
console.log("Device magnetometer:", await device.getTrackerMag("rightAnkle"));
} catch (error) {
console.error("Error getting device data:", error);
}
Expand Down

0 comments on commit f059647

Please sign in to comment.