Created
August 27, 2018 00:23
-
-
Save loginov-rocks/44c7a144a1548ab08426bc675854d183 to your computer and use it in GitHub Desktop.
How to make a web app for your own Bluetooth Low Energy device? Step 9
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
// Output to terminal | |
function log(data, type = '') { | |
terminalContainer.insertAdjacentHTML('beforeend', | |
'<div' + (type ? ' class="' + type + '"' : '') + '>' + data + '</div>'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment