Giter Club home page Giter Club logo

bluetoothclassicserial's People

Contributors

chrismorter avatar don avatar johnmclear avatar kiwisoup avatar legege avatar marvinmarnold avatar mrtomhoward avatar panickev avatar pardo-bsso avatar rhinolance avatar richie-blake avatar shokre avatar tigoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bluetoothclassicserial's Issues

No interface

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

Native UI Dialog Device selector does not show up when using Cordova but works when launching from xcode

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.