Created
October 10, 2017 00:23
-
-
Save goofmint/c8c5df1c1fb968f09becb4566de64538 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.then(value => { | |
let batteryLevel = value.getUint8(0); | |
console.log(`> バッテリーレベルは${batteryLevel}%です`); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment