capacitor-community / bluetooth-le

Capacitor plugin for Bluetooth Low Energy
MIT License
274 stars 79 forks source link

getDevices not working #613

Closed robsonos closed 6 months ago

robsonos commented 8 months ago

Describe the bug Devices do not connect after a disconnect on iOS. getDevices should do the trick but it does not seem to be working. Calling connect on a BleDevice returned form getDevices results in a timeout.

To Reproduce

// routine used for reconnections
const devices = await BleClient.getDevices([this.device.deviceId]);
const deviceToReconnect = devices.find((device) => device.deviceId === this.device.deviceId);
await BleClient.connect(deviceToReconnect.deviceId, (deviceId) => console.warn('Disconnected from: ', deviceId));

Expected behavior BLE should connect with data returned by getDevices

Plugin version:

pwespi commented 7 months ago

I cannot reproduce the problem you're describing. Can you share the logs from Xcode?

github-actions[bot] commented 6 months ago

It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.

Have a great day! Capacitor Community Bot 💙