Disconnect Action Advanced Customizations

  • Conditional Control: If the device is connected, the Disconnect action can be triggered, otherwise a warning can be displayed.
  • Automatic Rescan: After Disconnect, the Scan For Devices action can be triggered to list devices that can be connected to.
  • User Notification: After the action, the user can be notified that the connection has been disconnected via Notify or Modal.
  • Feedback Logging: When the disconnect operation is performed, a system log record can be kept or information can be sent to the admin panel.

Technical Risks and Precautions

  • Disconnect When No Connection: The connection cannot be disconnected if the device is not connected. The connection status must be checked beforehand.
  • Incomplete Process: If data transfer is in progress before the connection is disconnected, the process should not be interrupted before completion.
  • Device Errors: Some devices require the connection to be terminated properly before reconnecting. Ensure that the disconnect action is working correctly.

The Disconnect action enables you to perform controlled connection terminations in features that use Bluetooth in your application. It provides safe and effective use in critical processes such as switching between devices, energy management, and preventing connection errors.