# ESP Bluetooth Wifi Module

## Welcome

[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/donate?hosted_button_id=NMU3B9Z82JB3A) [![Join the Discord chat](https://img.shields.io/discord/827622724565467196?style=flat-square)](https://discord.gg/ux5hEaNSPQ)

This documentation is for using an ESP32 based module inside an OpenTX or EdgeTX radio.\
\
Currently the only available Bluetooth modules available that work with Open/Edge TX are the CC2540 with FrSky firmware this one is known as "Bluetooth Trainer". The newer version which is known as PARA is also available from FrSky. \
\
There are two modes of interfacing. The current AT Command Set and the new Packet Based Interface. Below are features under both modes and their status.

### Git Hub Code Link

{% embed url="<https://github.com/dlktdr/BTWifiModule>" %}

### AT Command Set - Currently OpenTX & EdgeTX Compatible

* [x] Bluetooth Trainer Functionality - Master Mode
* [x] Bluetooth Trainer Functionality - Slave Mode
* [x] Bluetooth Joystick - Wirelessly use radio as a Joystick for your simulator software

  **Note:** This is a separate firmware, since you can't switch on the radio. Setup the radio as Bluetooth/Slave, then connect your PC Game Console, etc. <https://github.com/dlktdr/BTWifiModule/tree/joystick>
* [ ] Bluetooth Telemetry

### Packet Based Interface - New design and Status

Work is being done in this branch - <https://github.com/dlktdr/BTWifiModule/tree/PacketMode>\
And the EdgeTx code to go with it - <https://github.com/dlktdr/edgetx/tree/ESPInterface>

* [x] Bluetooth Joystick
* [ ] Bluetooth Trainer - Master
* [ ] Bluetooth Trainer - Slave
* [ ] Bluetooth Audio Source - Mirror the audio output from the Radio
* [ ] IMU output, use Tilt / Roll as available channels on the radio
* [ ] ESPNow LR Mode for trainer - Longer Range, Reliability.. Maybe
* [ ] Wifi FTP server, Access to SD card - This won't be a high speed interface, mainly for small SD card changes, reading/writing models, updating firmware, upload a photo for your model.
* [ ] Serial port output (mirror) Connection to HM11 or Direct to Serial Class
  * [ ] Telemetry Mirror to BT serial port
  * [ ] Telemetry Mirror to BT HM11
* [ ] MavLink output as a WIfi AP / Station. (Incorporate DroneBridge code Maybe..)

If you see anything in this list that jumps out at you and want to help please do.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://btwifimod.gitbook.io/untitled/esp-bluetooth-wifi-module.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
