Skip to content

Commit

Permalink
Merge branch 'chars'
Browse files Browse the repository at this point in the history
  • Loading branch information
jones139 committed Oct 4, 2023
2 parents 2ffb9d2 + 7fa431e commit dd1b52e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions apps/openseizure/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
0.06: Changed heart rate characteristic to use the official UUIDs.
0.07: Removed OSD HR Char
0.08: Changed OSD UUIDs
0.09: Added lwatch ID char.
2 changes: 1 addition & 1 deletion apps/openseizure/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "openseizure",
"name": "OpenSeizureDetector Widget",
"shortName": "OSD",
"version": "0.08",
"version": "0.09",
"description": "[BETA!] A widget to work alongside [OpenSeizureDetector](https://www.openseizuredetector.org.uk/)",
"icon": "widget.png",
"type": "widget",
Expand Down
9 changes: 5 additions & 4 deletions apps/openseizure/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
const SERV_OSD = "000085e9-0000-1000-8000-00805f9b34fb";
const CHAR_OSD_ACC_DATA = "000085e9-0001-1000-8000-00805f9b34fb";
const CHAR_OSD_BAT_DATA = "000085e9-0002-1000-8000-00805f9b34fb";
const CHAR_OSD_WATCH_ID = "000085e9-0003-1000-8000-00805f9b34fb";

// Official BLE UUIDs from https://btprodspecificationrefs.blob.core.windows.net/assigned-numbers/Assigned%20Number%20Types/Assigned_Numbers.pdf
// Also based on bootgathrm bangle app.
Expand Down Expand Up @@ -98,9 +99,9 @@ const CHAR_HR_LOC = 0x2A38; // Official BLE Sensor Location UUID
readable : true,
notify : true
};
var charOsdHrData = {
value : hrVal,
maxLen : 8,
var charOsdWatchId = {
value : "BangleJs",
maxLen : 20,
readable : true,
notify : true
};
Expand All @@ -116,7 +117,7 @@ const CHAR_HR_LOC = 0x2A38; // Official BLE Sensor Location UUID
var servOsd = {};
servOsd[CHAR_OSD_ACC_DATA] = charOsdAccData;
servOsd[CHAR_OSD_BAT_DATA] = charOsdBatData;
servOsd[CHAR_OSD_HR_DATA] = charOsdHrData;
servOsd[CHAR_OSD_WATCH_ID] = charOsdWatchId;
var servHrm = {};
servHrm[CHAR_HRM] = charBleHrm;
servHrm[CHAR_HR_LOC] = charBleHrLoc;
Expand Down

0 comments on commit dd1b52e

Please sign in to comment.