You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys!
I'm trying to show the printers available in a list but i don't know how to extract data from the function:
BTPrinter.list(function(data){
console.log("Success");
console.log(data); // paired bluetooth devices array
},function(err){
console.log("Error");
console.log(err);
});
How can i do it? i can see the printer info but i can't get data to show in a list, could you help me please?
i tried to inject the value data in a storage using async method but no way..
The text was updated successfully, but these errors were encountered:
The printer's info returns in your shown array. This array contains 3 indexes per paired BT device. The printer's internal name will be in data[0] and its BT address in data[1], as shown in your console screenshot, as long as your first paired BT device is the actual printer.
Notice that this list returns all paired BT devices, not just printers. Check the demo app on how to show a list of paired BT devices found.
Hi guys!
I'm trying to show the printers available in a list but i don't know how to extract data from the function:
BTPrinter.list(function(data){
console.log("Success");
console.log(data); // paired bluetooth devices array
},function(err){
console.log("Error");
console.log(err);
});
How can i do it? i can see the printer info but i can't get data to show in a list, could you help me please?
i tried to inject the value data in a storage using async method but no way..
The text was updated successfully, but these errors were encountered: