mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
get public mqtt username and password from environment variables
This commit is contained in:
parent
027044c1a5
commit
2392a9f16e
1 changed files with 2 additions and 3 deletions
|
|
@ -43,9 +43,8 @@ class MqttClientProxyManager {
|
|||
var username = node.mqttConfig?.username
|
||||
var password = node.mqttConfig?.password
|
||||
if host == defaultServerAddress {
|
||||
|
||||
// username = ProcessInfo.processInfo.environment["publicMqttUsername"]
|
||||
// password = ProcessInfo.processInfo.environment["publicMqttPsk"]
|
||||
username = ProcessInfo.processInfo.environment["PUBLIC_MQTT_USERNAME"]
|
||||
password = ProcessInfo.processInfo.environment["PUBLIC_MQTT_PASSWORD"]
|
||||
useSsl = false
|
||||
}
|
||||
let root = node.mqttConfig?.root?.count ?? 0 > 0 ? node.mqttConfig?.root : "msh"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue