Doubt Bluetooth React Native

Asked

Viewed 34 times

0

Good afternoon, you guys! I am developing a pricing app but I have a question about how to search for Bluetooth devices within the application. I found a very interesting library and seemingly simple to implement but the Bluetooth Scan methods found bad documentation medium

(https://github.com/leesiongchan/react-native-esc-pos)

At a certain point in the application it needs to connect to the Bluetooth printer using the connect() method but first I need to get the data of the bluetooth devices (the address better saying)

// Connects to your printer
// If you use `bluetooth`, second parameter is not required.
await EscPos.connect("xxxxxxxxxx");

He says there is a need to use the method

EscPos.scanDevices();

But this method returns nothing. Someone has a light to give me on how I could implement this?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.