We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#include <Arduino.h> #include <ESP8266WiFi.h> #include <ESPAsyncWebServer.h> #include <ESP8266HTTPClient.h> #include <DNSServer.h> #include <ESPAsyncWiFiManager.h> #include "LittleFS.h" AsyncWebServer server(80); DNSServer dns; void setup() { Serial.begin(115200); LittleFS.begin(); AsyncWiFiManager wifiManager(&server, &dns); wifiManager.setDebugOutput(true); AsyncWiFiManagerParameter param_mqtt_title("<h3>Title</h3>"); AsyncWiFiManagerParameter param_mqtt_checkbox("mqtt", "", "1", 1, " type=\"checkbox\""); AsyncWiFiManagerParameter param_mqtt_checkbox_label("<label for=\"mqtt\">Using MQTT</label>"); AsyncWiFiManagerParameter div("<div></div>"); AsyncWiFiManagerParameter param_mqtt_ip_label("<label for=\"mqtt_ip\">Mqtt ip:</label>"); AsyncWiFiManagerParameter param_mqtt_ip("mqtt_ip", "0.0.0.0", "", 16, " type=\"text\" disabled"); AsyncWiFiManagerParameter param_mqtt_port_label("<label for=\"mqtt_port\">Mqtt port:</label>"); AsyncWiFiManagerParameter param_mqtt_port("mqtt_port", "1883", "1883", 5, " type=\"text\" disabled"); AsyncWiFiManagerParameter param_mqtt_user_label("<label for=\"mqtt_user\">Mqtt user:</label>"); AsyncWiFiManagerParameter param_mqtt_user("mqtt_user", "User", "", 16, " type=\"text\" disabled"); AsyncWiFiManagerParameter param_mqtt_pass_label("<label for=\"mqtt_pass\">Mqtt password:</label>"); AsyncWiFiManagerParameter param_mqtt_pass("mqtt_pass", "", "", 16, " type=\"text\" disabled"); AsyncWiFiManagerParameter param_mqtt_script("<script>function b(d){mqtt_ip.disabled = mqtt_port.disabled = mqtt_user.disabled = mqtt_pass.disabled = d}mqtt.addEventListener('change', (event) => b(!mqtt.checked));</script>"); wifiManager.addParameter(¶m_mqtt_title); wifiManager.addParameter(¶m_mqtt_checkbox); wifiManager.addParameter(¶m_mqtt_checkbox_label); wifiManager.addParameter(&div); wifiManager.addParameter(¶m_mqtt_ip_label); wifiManager.addParameter(¶m_mqtt_ip); wifiManager.addParameter(¶m_mqtt_port_label); wifiManager.addParameter(¶m_mqtt_port); wifiManager.addParameter(¶m_mqtt_user_label); wifiManager.addParameter(¶m_mqtt_user); wifiManager.addParameter(¶m_mqtt_pass_label); wifiManager.addParameter(¶m_mqtt_pass); wifiManager.addParameter(¶m_mqtt_script); wifiManager.autoConnect(("Module-"+String(ESP.getChipId())).c_str()); } void loop() { }
The param_mqtt_title parameter is displayed as a HTML tag input. I checked and understood that the condition in line 967 returns true.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The param_mqtt_title parameter is displayed as a HTML tag input. I checked and understood that the condition in line 967 returns true.
The text was updated successfully, but these errors were encountered: