• d = new DataView(device.data);
    readings= { temp: (( d.getUint16(18) -32) * 5 / 9).toFixed(1), gravity:(d.getUint16(20)/1000.0).toFixed­(3)  };
    console.log(readings);
    

    { "temp": "16.7", "gravity": "1.007" }

About

Avatar for Wilberforce @Wilberforce started