Replies: 1 comment 3 replies
-
Hi @banoz, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There's an issue with the negative weight readings from the scales. Could you check if this will work better?
`
private async attachNotification() {
ble.startNotification(this.device_id, DecentScale.READ_SERVICE_UUID, DecentScale.READ_CHAR_UUID,
async (_data) => {
const scaleData = new Uint8Array(_data);
// console.log("Received: " + scaleData[1] + " - " + scaleData[2] + " - "+ scaleData[3]);
if (scaleData[1] === 0xCE || scaleData[1] === 0xCA) {
// Weight notification
let newWeight: number = scaleData.readInt16BE(2) / 10; // buf.readInt16BE() from node.js
}
`
Beta Was this translation helpful? Give feedback.
All reactions