The Bluetooth configuration system in Meshtastic provides several important options that allow you to fine-tune how your device interacts with the LoRa network and connected clients. These include Enabled, Pairing Mode, and Fixed PIN Value. The configuration is managed through an administrative message that sends a Config.Bluetooth protobuf to the device.
Important Note: On ESP32 devices, Bluetooth will automatically be disabled whenever WiFi is enabled. The WiFi configuration always takes priority over Bluetooth, ensuring stable network communication.
Bluetooth Configuration Options
Enabled
This option allows you to activate or deactivate Bluetooth depending on your requirements for device connectivity.
Pairing Mode
You can select from several pairing modes to control how devices connect:
- RANDOM_PIN – generates a random PIN each time the device starts, enhancing security.
- FIXED_PIN – uses a specific PIN that you define separately, useful for consistent network pairing.
- NO_PIN – disables PIN authentication completely, simplifying device access.
Default Pairing Mode
Screen Attached: If the device boots with a screen connected, the default mode is RANDOM_PIN. Removing the screen later will not change this unless you manually switch to FIXED_PIN or NO_PIN. It is recommended to adjust the pairing mode before disconnecting the screen to maintain secure connections.
No Screen Attached: If the device boots without a screen, the default mode is FIXED_PIN with the preset value listed below, unless you configure a custom PIN.
Fixed PIN
When using FIXED_PIN, the default PIN is 123456. This value is ignored in other modes. You can set your own six-digit integer through the Bluetooth settings. Tip: Always change the default PIN. Keeping the default value is a serious security risk for your LoRa mesh network.
Bluetooth Client Availability Status
Android
All Bluetooth settings are available on Android devices:
- Open the Meshtastic application.
- Navigate to: Three-dot menu (top right) → Radio Configuration → Bluetooth.
Apple
On iOS, iPadOS, and macOS, go to Settings → Device Configuration → Bluetooth.
CLI
All Bluetooth options can be configured using the Python Command Line Interface. Examples are shown below:
| Setting | Acceptable Values | Default |
| bluetooth.enabled | true, false | TRUE |
| bluetooth.mode | RANDOM_PIN, FIXED_PIN, NO_PIN | RANDOM_PIN |
| bluetooth.fixed_pin | integer (6 digits) | 123456 |
- Enable or disable the Bluetooth module
| meshtastic --set bluetooth.enabled true meshtastic --set bluetooth.enabled false |
- Set a fixed PIN
| meshtastic --set bluetooth.mode FIXED_PIN meshtastic --set bluetooth.fixed_pin 111111 |
Tip: The device reboots after each CLI command. To save time, chain multiple commands together:
| meshtastic --set bluetooth.enabled true --set bluetooth.fixed_pin 111111 |
Web
All Bluetooth module settings are also available through the Web User Interface:
- Open the Meshtastic Web UI.
- Navigate to: Radio Config → Bluetooth.
