Skip to content

Commit

Permalink
V0.07 - Removed OSD HR char (using official one instead)
Browse files Browse the repository at this point in the history
  • Loading branch information
jones139 committed Oct 4, 2023
1 parent 7ff5865 commit e2373e3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
1 change: 1 addition & 0 deletions apps/openseizure/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
0.04: Fixing issue with OSD JSON specification
0.05: Added heart rate characteristic
0.06: Changed heart rate characteristic to use the official UUIDs.
0.07: Removed OSD HR 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.06",
"version": "0.07",
"description": "[BETA!] A widget to work alongside [OpenSeizureDetector](https://www.openseizuredetector.org.uk/)",
"icon": "widget.png",
"type": "widget",
Expand Down
13 changes: 0 additions & 13 deletions apps/openseizure/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,14 @@ const CHAR_HR_LOC = 0x2A38; // Official BLE Sensor Location UUID
value : batteryLevel,
notify : true
};
var charOsdHrData = {
value : hrVal,
notify : true
};
var charBleHrm = {
value : [0x06, hrVal], // Check what 0x06 is?
notify : true
};


var servOsd = {};
servOsd[CHAR_OSD_ACC_DATA] = charOsdAccData;
servOsd[CHAR_OSD_BAT_DATA] = charOsdBatData;
servOsd[CHAR_OSD_HR_DATA] = charOsdHrData;
var servHrm = {};
servHrm[CHAR_HRM] = charBleHrm;

Expand Down Expand Up @@ -99,12 +93,6 @@ const CHAR_HR_LOC = 0x2A38; // Official BLE Sensor Location UUID
readable : true,
notify : true
};
var charOsdHrData = {
value : hrVal,
maxLen : 8,
readable : true,
notify : true
};
var charBleHrm = {
value : [0x06, 0], // Check what 0x06 is?
maxLen : 2,
Expand All @@ -117,7 +105,6 @@ 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;
var servHrm = {};
servHrm[CHAR_HRM] = charBleHrm;
servHrm[CHAR_HR_LOC] = charBleHrLoc;
Expand Down

0 comments on commit e2373e3

Please sign in to comment.