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".
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?
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?