Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This was a while in the making to align with v1.2.0 for SlimeTora! This is only a major version change increment because I renamed some functions, lol (following semver, I love the two updates v2 had). + (BREAKING) Rename some functions from "get[Event]()" to "fire[Event]()" + BLE (wireless) updates + Remove artificial delay for BLE info (fixed my flawed code lol) + Add missing data/characteristics + Fully support wireless BT trackers for battery events (has all info now - percentage, voltage, status) + Auto-detect functions + Try to automatically find the devices and its connection mode (BLE/COM) + Supports wireless (BT/GX) and wired (untested) + New HaritoraX functions: getAvailableDevices() & getDevicePorts(device) + Update "connect" event + "connectionMode" shows what connection mode the tracker was connected by + "port" shows what COM port the tracker was from (if provided) + Re-add support of "processSettingsData()" for wireless GX trackers + "Data queue" system if trackers aren't assigned yet + Optimize code for performance and readability (hopefully) + Also reduces package dependencies! + Error handling & logging updates + Throw errors that are "severe" that bypass the "debug" switch + Prevent errors when stopping connection (stop processing data when stopping) + Add "raw data" logging (tracker name, raw data, (service, characteristic) or com port) + Generally better error handling + Other general logging tweaks + Fix wireless BT trackers JSON errors when reporting its battery + Fix processing dongle/null "button" data + Update JSDoc/comments + More bug fixes, optimizations, and other updates I forgot lol (or too small to mention)
- Loading branch information