I'm working with this library in achieving two features in my react native app for iOS and Andriod
Feature
I was trying to find/scan Samsung Galaxy Watch and Apple Watch using react-native-ble-plx library in react native. I was able to detect other nearby BLE Peripheral devices using my react native app, but unable to discover Apple Watch and Samsung Galaxy watch. Is it possible to scan Samsung Galaxy watches and Apple Watches via react native app using ble?
I'm also working on other solution by developing a Tizen Watch App which will be installed in Galaxy watch and start sending some values from watch using the BLE GATT profile in Tizen with custom service and characteristics UUID's. Is it possible to Connect to Samsung watch without knowing its UUID via react-native-ble-plx library in react native?
I was able to detect my Apple Watch with some Apps named BLE Scanner , nRF Connect but not from my react native app using react-native-ble-plx library. What might be the reason?
Any help is greatly appreciated.
Thanks.
Edit: Updated With Scanning Code:
scanAndConnect() {
console.log('Scanning Started');
this.manager.startDeviceScan(null, null, (error, device) => {
if (error) {
Alert.alert(i18next.t('ble_alert_title'), error.message);
return;
}
console.log(
'Detected Device Details:',
device?.id,
device?.name,
device?.localName,
);
}
question from:
https://stackoverflow.com/questions/65845943/is-it-possible-to-detect-scan-for-samsung-galaxy-watch-using-ble-in-react-native 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…