innoveit / react-native-ble-manager

React Native BLE communication module
http://innoveit.github.io/react-native-ble-manager/
Apache License 2.0
2.12k stars 764 forks source link

Can i list the peripherals and get the and then get data from a device? #623

Closed gvaldatti closed 3 years ago

gvaldatti commented 4 years ago

I'm developing an application to communicate with mi band's, but I can't connect using the UUID (only by MAC address) I would like to list the devices so I can get the MAC address and use it to connect.

marcosinigaglia commented 4 years ago

Hi, you can't use directly the MAC address to connect to a device.

isThereAnyF-ingNameAvailable commented 4 years ago

what are you talking about? handleDiscoverPeripheral(peripheral){ BleManager.connect(peripheral.id) } works just fine. peripheral.id is MAC address.