2022-08-24 08:36:58 -07:00
---
id: bluetooth
title: Bluetooth Settings
2022-11-02 11:46:54 -07:00
slug: /settings/config/bluetooth
2022-08-24 08:36:58 -07:00
sidebar_label: Bluetooth
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2022-11-02 11:46:54 -07:00
The Bluetooth config options are: Enabled, Pairing Mode and Fixed PIN Value. Bluetooth config uses an admin message sending a `Config.Bluetooth` protobuf.
2022-08-24 08:36:58 -07:00
2022-11-09 01:50:40 -08:00
:::info
On ESP32 Bluetooth will be disabled if WiFi is enabled. The WiFi setting takes precedence.
:::
2022-08-24 08:36:58 -07:00
## Bluetooth Config Values
### Enabled
2022-11-09 01:50:40 -08:00
Enables Bluetooth.
2022-08-24 08:36:58 -07:00
### Pairing Mode
2022-10-05 06:10:46 -07:00
Specify pairing mode.
`RANDOM_PIN` generates a random PIN during runtime.
`FIXED_PIN` uses the fixed PIN that should then be additionally specified.
Finally, `NO_PIN` disables PIN authentication.
2022-08-24 08:36:58 -07:00
### Fixed PIN
2022-11-09 01:50:40 -08:00
If your pairing mode is set to fixed PIN this is the value of that fixed 6 digit pin. Default value is 123456. For all other pairing modes, this number is ignored.
2022-08-24 08:36:58 -07:00
2022-11-07 20:53:52 -08:00
## Configure Bluetooth Config
2022-08-24 08:36:58 -07:00
2022-09-22 18:51:41 -07:00
<Tabs
groupId="settings"
2022-11-07 20:53:52 -08:00
defaultValue="cli"
2022-09-22 18:51:41 -07:00
values={[
{label: 'Android', value: 'android'},
{label: 'Apple', value: 'apple'},
{label: 'CLI', value: 'cli'},
{label: 'Web', value: 'web'},
]}>
<TabItem value="android">
:::info
2022-11-07 20:53:52 -08:00
Bluetooth config is not available for Android.
2022-09-22 18:51:41 -07:00
:::
</TabItem>
<TabItem value="apple">
2022-11-07 20:53:52 -08:00
All Bluetooth config values are available on iOS, iPadOS and macOS.
1. Open the Meshtastic App
2. Navigate to: **Settings > Radio Configuration > Position**
2022-09-22 18:51:41 -07:00
</TabItem>
<TabItem value="cli">
2022-11-02 11:46:54 -07:00
All Bluetooth module config options are available in the python CLI. Example commands are below:
2022-08-24 08:36:58 -07:00
| Setting | Acceptable Values | Default |
| :-----------------------: | :-----------------: | :-----: |
2022-10-05 06:10:46 -07:00
| `bluetooth.enabled` | `true`, `false` | `true` |
| `bluetooth.mode` | `RANDOM_PIN`, `FIXED_PIN`, `NO_PIN` | `RANDOM_PIN` |
| `bluetooth.fixedPin` | `integer` (6 digits) | `123456` |
2022-08-24 08:36:58 -07:00
2022-09-22 18:51:41 -07:00
```shell title="Enable/Disable Bluetooth Module"
meshtastic --set bluetooth.enabled true
2022-09-30 09:58:28 -07:00
meshtastic --set bluetooth.enabled false
2022-09-22 18:51:41 -07:00
```
2022-08-24 08:36:58 -07:00
2022-09-22 18:51:41 -07:00
```shell title="Set a fixed pin"
2022-09-22 19:12:45 -07:00
meshtastic --set bluetooth.mode FIXED_PIN
meshtastic --set bluetooth.fixed_pin 111111
2022-09-22 18:51:41 -07:00
```
</TabItem>
<TabItem value="web">
2022-08-24 08:36:58 -07:00
2022-09-22 18:51:41 -07:00
:::info
2022-11-02 11:46:54 -07:00
All Bluetooth module config options are available for the Web UI.
2022-09-22 18:51:41 -07:00
:::
2022-10-05 06:10:46 -07:00
2022-09-22 18:51:41 -07:00
</TabItem>
2022-10-05 06:10:46 -07:00
</Tabs>