Merge pull request #61 from joshpirihi/master

Add mqtt username and password to user preferences
This commit is contained in:
Sacha Weatherstone 2021-12-29 10:16:14 +10:30 committed by GitHub
commit 638783bad4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View file

@ -5,4 +5,7 @@
# Max of three ignored nodes for our testing
*UserPreferences.ignore_incoming max_count:3
*UserPreferences.mqtt_server max_size:32
*UserPreferences.mqtt_server max_size:32
*UserPreferences.mqtt_username max_size:32
*UserPreferences.mqtt_password max_size:32

View file

@ -581,6 +581,21 @@ message RadioConfig {
*
*/
uint32 hop_limit = 154;
/*
* MQTT username to use (most useful for a custom MQTT server).
* If using a custom server, this will be honoured even if empty.
* If using the default server, this will only be honoured if set, otherwise the device will use the default username
*/
string mqtt_username = 155;
/*
* MQTT password to use (most useful for a custom MQTT server).
* If using a custom server, this will be honoured even if empty.
* If using the default server, this will only be honoured if set, otherwise the device will use the default password
*/
string mqtt_password = 156;
}
UserPreferences preferences = 1;