Skip to content

Commit

Permalink
Fixed error that was trying to write to undefined characteristic.
Browse files Browse the repository at this point in the history
  • Loading branch information
jones139 committed Dec 8, 2023
1 parent 7cf742f commit 8454641
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/openseizure/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* 03 Oct 2023 - Graham Jones: Added heart rate data service
*/

const WATCH_FW = "0.11";
const WATCH_FW = "0.12";
const WATCH_ID = "BangleJs";

const SERV_OSD = "000085e9-0000-1000-8000-00805f9b34fb";
Expand Down Expand Up @@ -50,10 +50,10 @@ const CHAR_HR_LOC = 0x2A38; // Official BLE Sensor Location UUID
value : batteryLevel,
notify : true
};
var charOsdHrData = {
value : hrVal,
notify : true
};
//var charOsdHrData = {
// value : hrVal,
// notify : true
//};
var charBleHrm = {
value : [0x06, hrVal], // Check what 0x06 is?
notify : true
Expand All @@ -63,7 +63,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_HR_DATA] = charOsdHrData;
var servHrm = {};
servHrm[CHAR_HRM] = charBleHrm;

Expand Down

0 comments on commit 8454641

Please sign in to comment.