diff --git a/config.proto b/config.proto index 21e019e..61a2ee9 100644 --- a/config.proto +++ b/config.proto @@ -585,6 +585,42 @@ message Config { } + message BluetoothConfig { + + enum PairingMode { + /* + * Device generates a random pin that will be shown on the screen of the device for pairing + */ + RandomPin = 0; + + /* + * Device requires a specified fixed pin for pairing + */ + FixedPin = 1; + + /* + * Device requires no pin for pairing + */ + NoPin = 2; + } + + /* + * Enable Bluetooth on the device + */ + bool enabled = 1; + + /* + * Determines the pairing strategy for the device + */ + PairingMode mode = 2; + + /* + * Specified pin for PairingMode.FixedPin + */ + uint32 fixed_pin = 3; + + } + /* * Payload Variant */ @@ -596,6 +632,7 @@ message Config { WiFiConfig wifi = 4; DisplayConfig display = 5; LoRaConfig lora = 6; + BluetoothConfig bluetooth = 7; } } diff --git a/localonly.proto b/localonly.proto index 7f7c944..6d07c87 100644 --- a/localonly.proto +++ b/localonly.proto @@ -45,12 +45,17 @@ message LocalConfig { */ Config.LoRaConfig lora = 6; + /* + * The part of the config that is specific to the Bluetooth settings + */ + Config.BluetoothConfig bluetooth = 7; + /* * A version integer used to invalidate old save files when we make * incompatible changes This integer is set at build time and is private to * NodeDB.cpp in the device code. */ - uint32 version = 7; + uint32 version = 8; } message LocalModuleConfig {