Facing issue while accucheck guide(Glucometer) meter data conversion #1163
Unanswered
amitturakSDN
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have implemented the Accu-Chek glucometer guide device and obtained the following values: [27, 15, 0, 232, 7, 1, 30, 5, 58, 27, 83, 1, 111, 176, 248, 0, 0]. I then converted these values into a string using bytesToString and received the result 'o°ø'. However, the actual value displayed on the device is 6.2, while I am currently obtaining 1.5. Can you please assist me in obtaining the correct values?
my code is
const binaryString = bytesToString(device.value);
console.log(binaryString,'binaryString>>>>>>');
const glucose_in_decimal =
binaryString.charCodeAt(2) * 256 + binaryString.charCodeAt(1);
const glucose = glucose_in_decimal / 10;
console.log(glucose, 'Parsed blood glucose data>>>>');
The Accu-Chek glucometer device is displaying a reading of 6.2, and this is the value I am seeking.
Beta Was this translation helpful? Give feedback.
All reactions