Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

bluetooth lowenergy - Is it possible to detect/scan for Samsung Galaxy Watch using BLE in react native?

I'm working with this library in achieving two features in my react native app for iOS and Andriod

Feature

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

  2. 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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

63 comments

56.6k users

...