For the complete documentation index, see llms.txt. This page is also available as Markdown.

Bluetooth Disconnect Alert

A Support Application 6 feature that alerts the user with a sound when a paired Bluetooth peripheral disconnects unexpectedly.

Overview

Use Bluetooth Disconnect Alert to notify the user with a sound when a paired Bluetooth peripheral, e.g., a barcode scanner or sled, disconnects unexpectedly. This helps the user notice immediately rather than continuing to scan into a device that isn’t receiving data.

Bluetooth Disconnect Alert is disabled by default. When enabled, the alert volume defaults to 80 and the alert plays for 15 seconds.

User Guide

Prerequisites

  • Grant the BLUETOOTH_CONNECT and BLUETOOTH_SCAN runtime permissions on the device.

  • Pair the Bluetooth peripheral with the device. This feature does not perform pairing itself; a peripheral must already be paired.

Steps

To configure Bluetooth Disconnect Alert, complete the following steps:

  1. Enable the Bluetooth Disconnect Alert feature.

  2. Configure the alert sound, volume, and play duration as needed.

Configuration

Enabling Bluetooth Disconnect Alert

To enable the Bluetooth Disconnect Alert feature, set bluetoothDisconnectAlert.enable to true:

Configuring the Alert Sound

Set bluetoothDisconnectAlert.media to the path or identifier for the alert sound:

Configuring Alert Volume

Set bluetoothDisconnectAlert.volume to the desired alert volume, clamped to 50–100:

Configuring Alert Duration

Set bluetoothDisconnectAlert.timeRunning to how long the alert plays, in seconds, clamped to 5–30:

This table provides the settings for the Bluetooth Disconnect Alert feature.

Configuration
Type
Default
Description

bluetoothDisconnectAlert.enable

Boolean

-

Enables the Bluetooth Disconnect Alert feature

bluetoothDisconnectAlert.media

String

-

Path/identifier for the alert sound

bluetoothDisconnectAlert.volume

Integer

80

Alert volume, clamped to 50–100

bluetoothDisconnectAlert.timeRunning

Integer(seconds)

15

How long the alert plays, clamped to 5–30 seconds

Putting It All Together

For the example described above, the full configuration for the Bluetooth Disconnect Alert feature is as follows:

Last updated