Skip to content

Phonegap adapter to allow raw printing from Javascript to a Star thermal printer via Bluetooth

License

Notifications You must be signed in to change notification settings

vshjxyz/StarIOAdapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StarIOAdapter

Just a phonegap adapter to allow raw printing from Javascript to a Star thermal printer via Bluetooth.

Use the standard phonegap/cordova way to install it.

phonegap local plugin add https://github.com/vshjxyz/StarIOAdapter

To use the plugin calling one of the methods in the StarIOAdapter object that you should find in your JS environment once you have installed the plugin.

Examples

// This will search the first paired BT device and send the text 
// specified to it using the Star SDK
StarIOAdapter.rawprint("Text to print", "BT:", function() {
    alert("printed");
});
// This method checks if the printer that has that particular IP is
// Online and ready to print
StarIOAdapter.check("TCP:192.168.1.200", function() {
    alert("The printer is Online and ready");
}, function(error) {
    alert("The was a problem with the printer: " + error);
});

About

Phonegap adapter to allow raw printing from Javascript to a Star thermal printer via Bluetooth

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published