From 2392a9f16e702ae267e5ca6911ba8df1a3287ad2 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Fri, 7 Feb 2025 09:45:28 -0800 Subject: [PATCH] get public mqtt username and password from environment variables --- Meshtastic/Helpers/Mqtt/MqttClientProxyManager.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Meshtastic/Helpers/Mqtt/MqttClientProxyManager.swift b/Meshtastic/Helpers/Mqtt/MqttClientProxyManager.swift index eba2d41f..56d146c2 100644 --- a/Meshtastic/Helpers/Mqtt/MqttClientProxyManager.swift +++ b/Meshtastic/Helpers/Mqtt/MqttClientProxyManager.swift @@ -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"