Merge pull request #191 from meshtastic/bluetooth-config

Bluetooth config
pull/193/head
Ben Meadors 2022-08-15 16:35:29 -05:00 zatwierdzone przez GitHub
commit 0345957a4f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 43 dodań i 1 usunięć

Wyświetl plik

@ -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 * Payload Variant
*/ */
@ -596,6 +632,7 @@ message Config {
WiFiConfig wifi = 4; WiFiConfig wifi = 4;
DisplayConfig display = 5; DisplayConfig display = 5;
LoRaConfig lora = 6; LoRaConfig lora = 6;
BluetoothConfig bluetooth = 7;
} }
} }

Wyświetl plik

@ -45,12 +45,17 @@ message LocalConfig {
*/ */
Config.LoRaConfig lora = 6; 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 * 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 * incompatible changes This integer is set at build time and is private to
* NodeDB.cpp in the device code. * NodeDB.cpp in the device code.
*/ */
uint32 version = 7; uint32 version = 8;
} }
message LocalModuleConfig { message LocalModuleConfig {