kopia lustrzana https://github.com/meshtastic/protobufs
commit
0345957a4f
37
config.proto
37
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
|
* 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;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Ładowanie…
Reference in New Issue