> For the complete documentation index, see [llms.txt](https://developer.magtek.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.magtek.com/api-and-command-reference/dynafamily-programmers-manual/commands/0x1fnn-device-control/0x1f04-terminate-bluetooth-le-connection-bluetooth-le-only.md).

# 0x1F04 - Terminate Bluetooth LE Connection (Bluetooth LE Only)

The host can use this command to terminate a Bluetooth® LE connection. The host may also be able to terminate a Bluetooth® LE connection directly without using this command.

The sequence of events is as follows:

{% stepper %}
{% step %}
The host constructs the command request for **Device in** the format below.
{% endstep %}

{% step %}
The host sends the command request to the device.
{% endstep %}

{% step %}
The device sends a response in the format below to the host.
{% endstep %}

{% step %}
The device terminates the Bluetooth® LE connection within around 500 ms.
{% endstep %}
{% endstepper %}

## Request Data for Command 0x1F04 – Terminate Bluetooth® LE Connection

<table><thead><tr><th>Tag</th><th width="74.3333740234375">Len</th><th width="128">Value / Description</th><th width="74">Typ</th><th width="73.99993896484375">Req</th><th width="96.666748046875">Default</th></tr></thead><tbody><tr><td>Beginning of any wrappers, at minimum including <strong>Request Message</strong></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>1F04 = <strong>Command 0x1F04 - Terminate Bluetooth® LE Connection</strong></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>No parameters.</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>End of any wrappers, at minimum including <strong>Request Message</strong> </td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table>

## Response Data for Terminate Bluetooth® LE Connection - Command 0x1F04

<table><thead><tr><th>Tag</th><th width="74">Len</th><th width="124">Value / Description</th><th width="75">Typ</th><th width="76">Req</th><th width="98">Default</th></tr></thead><tbody><tr><td>Beginning of any wrappers, at minimum including <strong>Response Message</strong> </td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>1F04 = <strong>Command 0x1F04 - Terminate Bluetooth® LE Connection</strong> </td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>No parameters.</td><td></td><td></td><td></td><td></td><td></td></tr><tr><td>End of any wrappers, at minimum including <strong>Response Message</strong> </td><td></td><td></td><td></td><td></td><td></td></tr></tbody></table>

#### Request Example&#x20;

{% code title="Example (Hex)" %}

```
AA 00 81 04 01 55 1F 04 84 02 1F 04
```

{% endcode %}

#### Response Example&#x20;

{% code title="Example (Hex)" %}

```
AA 00 81 04 82 55 1F 04 82 04 00 00 00 00 84 02 1F 04
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.magtek.com/api-and-command-reference/dynafamily-programmers-manual/commands/0x1fnn-device-control/0x1f04-terminate-bluetooth-le-connection-bluetooth-le-only.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
