Last active
October 18, 2018 14:44
-
-
Save nazrdogan/4645c9289e0f6f274e05ef82a8d1ee5c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
window["DatecsPrinter"].listBluetoothDevices( | |
function (devices) { | |
window["DatecsPrinter"].connect(devices[0].address, | |
function() { | |
printSomeTestText(); | |
}, | |
function(error) { | |
alert(JSON.stringify(error)); | |
} | |
); | |
}, | |
function (error) { | |
alert(JSON.stringify(error)); | |
} | |
); | |
function printSomeTestText() { | |
window["DatecsPrinter"].printText("Print Test!", 'ISO-8859-1', | |
function() { | |
//printMyImage(); | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment