Skip to content

Issue: I cannot permanently close the connection to a Socket S550 (BLE device) #26

@jimc-jpgreze

Description

@jimc-jpgreze

Your Socket Mobile Developer ID

94ad3dd4-8474-ea11-a811-000d3a3786fc

Environment

OS Version: iOS 26.4
CaptureSDK version: react-native-capture: 2.0.24
Device: iPad 9th generation

Description

I am upgrading to version 2.x of the React Native CaptureSDK, and while I can connect to the S550 using the new CaptureHelper, I cannot permanently disconnect from it. To disconnect, I'm calling the setDisconnect() method on the CaptureHelperDevice, and I hear the S550 say "disconnected", and I get the onDeviceRemoval event, but then the S550 immediately reconnects and I get a new onDeviceArrival event. I have not figured out a way to permanently disconnect from the device. When I used version 1.x of the SDK, I would clear the favorite, but this is no longer supported. Please advise.

Steps to Reproduce

  1. Create an instance of CaptureHelper.
  2. Discover the S550 using captureHelper.addBluetoothDevice(BluetoothDiscoveryMode.BluetoothLowEnergy);
  3. Upon invocation of onDiscoveredDevice(discoveredDevice), connect using captureHelper.connectDiscoveredDevice(discoveredDevice);
  4. The app will receive a onDeviceArrival(s550Device) event indicating the S550 is connected.
  5. Now attempt to disconnect using s550Device.setDisconnect()
  6. The S550 will briefly disconnect, the app will receive an onDeviceRemoval event, and the S550 will immediately reconnect and the app will receive a onDeviceArrival event again.

Expected Behavior

The expected behavior is for the S550 to remain disconnected after calling the setDisconnect() method, so it can be connected to another host.

Actual Behavior

The actual behavior is that the S550 does not remain disconnected after the setDisconnect() call, it immediately reconnects.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions