Skip to content

Commit

Permalink
v3.1.0
Browse files Browse the repository at this point in the history
- Add full support for wireless BT on Linux
  - This makes use of the `node-ble` package which directly communicates with dbus on Linux.
  - Requires modification to dbus config to work, see https://github.com/chrvadala/node-ble?tab=readme-ov-file#provide-permissions
- Add many GX dongle features:
  - Pairing/unpairing trackers (w/ events)
  - Turning off trackers
  - Set COM communication channel
  - Manually request data from dongle
- Add getting interpreter's com.ts/bluetooth(-linux).ts instances
  - Allows you to run methods inside those files with the instance currently being used by the interpreter
- Add processing of some wireless BT data when received
- Add TS types & definitions
- Add extra failsafes if receiving no data
  - BT code times out if discovery of services/characteristics take too long
  - Data timeouts in listenToDeviceEvents() that removes & disconnects the tracker if no "data" event is fired after 10 seconds
- Add numerous (un)known UUIDs for wireless BT trackers
- Increase canSendButtonData timeout to 2000
- Numerous logging changes
- Optimizations to writing to COM ports
- Update packages
- Fix BTSPP detection on Windows
  - This is something I can't really test, I don't have any BTSPP devices
- Fix bluetooth initialization errors (even when perfectly fine)
- Fix GX dongle per-tracker settings
  - Fully stable now, no need to "not recommend" anymore
- Fix battery processing breaking interpreter if trackers aren't assigned yet
- Fix removeActiveDevices() returning nothing
- Fix "null" and "DONGLE" tracker ids
- Fix "fireEventName()" methods with BT + COM enabled
- Fix fireTrackerBattery() not processing BT battery & add delay before reading battery for COM
- Remove "no button pressed" log
- Fix error printing
- Other bug fixes & optimizations
  • Loading branch information
JovannMC committed Oct 5, 2024
1 parent 944ade1 commit 6d99612
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2,712 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@ jobs:
with:
node-version: "20"
registry-url: https://registry.npmjs.org/
- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install
run: npm install

- name: Build package
run: pnpm run build
run: npm run build

- name: Publish package
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: pnpm publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": "3.0.1",
"version": "3.1.0",
"homepage": "https://github.com/JovannMC/haritorax-interpreter",
"repository": "https://github.com/JovannMC/haritorax-interpreter",
"bugs": {
Expand Down
Loading

0 comments on commit 6d99612

Please sign in to comment.