Skip to content

Instantly share code, notes, and snippets.

@nazrdogan nazrdogan/printer.js
Last active Oct 18, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.