@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