Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k 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 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...