soltius / bluetoothclassicserial Goto Github PK
View Code? Open in Web Editor NEWThis project forked from don/bluetoothserial
Cordova (PhoneGap) Plugin for Serial Communication over Bluetooth
License: Other
This project forked from don/bluetoothserial
Cordova (PhoneGap) Plugin for Serial Communication over Bluetooth
License: Other
Hi,
i have a problem. my code wich use with tsc printer BT. The connection si perfect, promise is ok but when call write method receive No Interface? Ex in Adroid with Codova 11. AA:BB:CC:DD:EE:FF is example. I have verified wich a SSP is "00001101-0000-1000-8000-00805F9B34FB"
bluetoothClassicSerial.connect("AA:BB:CC:DD:EE:FF", '00001101-0000-1000-8000-00805F9B34FB', function() {
//alert("conneted"); the connection is ok and the led blu into printer is on
let data = 'TEXT 10,10,"2",0,1,1,"FONT 2"'; //TSPL language for TSC printer sent as text
bluetoothClassicSerial.write('00001101-0000-1000-8000-00805F9B34FB', data, function() {
}, function(error) {
alert(error); //No Interface
});
}, function(error) {
});
thanks
Hi,
Love your work on this plugin.
If we use the following js in our Cordova app and build and deploy the app from cordova to our iPad, the native dialog to select the BT accessory does not show up
bluetoothClassicSerial.discoverUnpaired(function(devices) {
devices.forEach(function(device) {
console.log(device.id);
})
}, failure);
Instead the JS error comes back "Device selection failed." No native dialog picker shows up in our app.
Now, using Xcode, we open the native xCode project file that Cordova built and deployed on our iPad. We make no changes to the project at all from xCode and simply deploy the project from xCode to our iPad.
Now, the above discoverUnpaired works as expected, showing the native dialog to allow us to select and connect to our unpaired device.
Why does Cordova build/deploy not work, but the xCode build/deploy does work?
Thanks!
Shane
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.