Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

BLE cannot connect to device

$
0
0

@HamdySdiri wrote:

I am using BLE https://www.npmjs.com/package/cordova-plugin-ble-central#scan
to connect to a another phone.
the scan works fine. it show me the list of the connected devices.
but when i am trying to connect to that device it's not happens.

connectToDevice() {

alert("try to connect");

this.ble.connect(this.device.id).subscribe(peripheralData => {
  alert(peripheralData.characteristics);

  this.characteristics = peripheralData.characteristics;

},
  peripheralData => {
    alert('disconnected');


  });

}
it always shome the disconected message.
how can i solve this problem

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>