Skip to content

Instantly share code, notes, and snippets.

@nazrdogan
Last active October 18, 2018 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nazrdogan/4645c9289e0f6f274e05ef82a8d1ee5c to your computer and use it in GitHub Desktop.
Save nazrdogan/4645c9289e0f6f274e05ef82a8d1ee5c to your computer and use it in GitHub Desktop.
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