feat: optional MQTT username/password with portal restyling - #41
Merged
Merged
Conversation
Add optional MQTT authentication to the configuration portal and MQTT connection: - NetworkManager::beginMqtt() accepts optional username/password; empty username keeps the anonymous connection path - New portal fields 'MQTT Username' and 'MQTT Password' (mqtt_user, mqtt_pass), persisted to NVS like the existing mqtt_server/mqtt_port - Password field is masked via injected script (type=password) - Portal look & feel matches the pool-controller web dashboard: dark glassmorphism theme with cyan accent (#00e5ff), glass card, gradient buttons
Contributor
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Zusammenfassung
Erweitert die Konfiguration um optionales MQTT-User/Passwort und gleicht das Look & Feel des Konfigurationsportals an den pool-controller an.
Änderungen
NetworkManager::beginMqtt()akzeptiert optionalusername/password:connect(clientId))connect(clientId, username, password)PoolMonitorContext::initializeNetwork()):mqtt_user) und „MQTT Password" (mqtt_pass)putString/getString) konsistent zumqtt_server/mqtt_porttype=passwordmaskiertpool-controller/data/web/style.css:#06121e/#0a1e2f, Glas-Cardrgba(8,28,48,.75))#00e5ff, Inputs mit Cyan-Focus-Glow, Gradient-Buttons#00b4d8→#00e5ffWiFiSettings.html()(kein Library-Fork nötig)initializeMqtt()undshowWiFiConnectedScreen()anbeginMqtt()durchgereicht; Offline-Zyklus lädt sie aus NVSVerifikation
platformio check --environment LILYGO_T5_V231 --skip-packages→ PASSED (0 HIGH/MEDIUM)platformio run --environment LILYGO_T5_V231→ SUCCESS (RAM 16.8%, Flash 89.1%)cpplintauf allen geänderten Dateien → sauberKompatibilität
Rückwärtskompatibel: ohne gesetzten MQTT-User bleibt das Verhalten identisch zum Status quo. Die NVS-Keys
mqtt_user/mqtt_passsind konsistent zum pool-controller (kMqttUser/kMqttPass).