You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detailed Description of the Issue Issue Summary:
After successfully connecting to a BLE device using the @capacitor-community/bluetooth-le plugin in an Ionic 7 Angular application, attempting to read or write characteristics returns an error stating "device is not connected." This issue occurs even though the initial connection appears to be successful.
Steps to Reproduce:
Initialize the BLE client with BleClient.initialize().
Request the BLE device using BleClient.requestDevice() with appropriate service UUIDs.
Disconnect to the device using BleClient.disconnect(device.deviceId).
Connect to the device using BleClient.connect(device.deviceId).
Attempt to read or write a characteristic using BleClient.read(device.deviceId, serviceUUID, characteristicUUID) or BleClient.write(device.deviceId, serviceUUID, characteristicUUID, value).
Observed Behavior:
The device connects successfully, as confirmed by the connection logs.
Upon attempting to read or write a characteristic, an error is thrown indicating that the device is not connected.
Expected Behavior:
After a successful connection, reading from or writing to a characteristic should succeed without errors.
Additional Context:
The issue seems to be intermittent, as the connection is initially established but subsequent read/write operations fail.
Adding delays and retry logic does not resolve the issue.
This issue occurs on multiple Android devices and versions.
Environment:
Ionic Version: 7
Capacitor Version: 6.0.0
BLE Plugin Version: "@capacitor-community/bluetooth-le": "^6.0.0"
Pls Help
The text was updated successfully, but these errors were encountered:
I noticed that the disconnection event only triggers after a write or read attempt. However, by changing the autoconnect parameter to true, the connection works consistently.
Detailed Description of the Issue
Issue Summary:
After successfully connecting to a BLE device using the @capacitor-community/bluetooth-le plugin in an Ionic 7 Angular application, attempting to read or write characteristics returns an error stating "device is not connected." This issue occurs even though the initial connection appears to be successful.
Steps to Reproduce:
Observed Behavior:
The device connects successfully, as confirmed by the connection logs.
Upon attempting to read or write a characteristic, an error is thrown indicating that the device is not connected.
Expected Behavior:
After a successful connection, reading from or writing to a characteristic should succeed without errors.
Additional Context:
The issue seems to be intermittent, as the connection is initially established but subsequent read/write operations fail.
Adding delays and retry logic does not resolve the issue.
This issue occurs on multiple Android devices and versions.
Environment:
Ionic Version: 7
Capacitor Version: 6.0.0
BLE Plugin Version: "@capacitor-community/bluetooth-le": "^6.0.0"
Pls Help
The text was updated successfully, but these errors were encountered: