CesarBalzer / Cordova-Plugin-BTPrinter

A cordova plugin for bluetooth printer for android platform
Apache License 2.0
81 stars 64 forks source link

Question about discovery #38

Closed HrvojeRajic closed 3 years ago

HrvojeRajic commented 3 years ago

I'm trying to implement discovery but it seems, I'm getting array of devices in which there are three (3) rows for each paired device. One contains name, second MAC address and third is an integer (I don't know what does it present). In documentation array is presented using "data".

BTPrinter.list(function(data){ console.log("Success"); console.log(data); // paired bluetooth devices array },function(err){ console.log("Error"); console.log(err); });

I want to present paired devices to user to choose to which of devices he or she want to connect...but if I have three entries for each device it is pretty difficult to to...can somebody help me?

HrvojeRajic commented 3 years ago

Sorry, now I see...found everything 👍