@@ -52,14 +52,14 @@ NetWizardParameter nw_mqtt_host(&NW, NW_INPUT, "Host", "", "mqtt.example.com");
5252NetWizardParameter nw_mqtt_port(&NW, NW_INPUT, "Port", "", "1883");
5353
5454// Initialize ESP-DASH
55- ESPDash dashboard(& server, "/dashboard", true); // <--- We initialize ESP-DASH at "/dashboard" URL so that NetWizard logic is not distrupted
55+ ESPDash dashboard(server, "/dashboard", true); // <--- We initialize ESP-DASH at "/dashboard" URL so that NetWizard logic is not distrupted
5656
5757/*
5858 Dashboard Cards
5959 Format - (Dashboard Instance, Card Type, Card Name, Card Symbol(optional) )
6060* /
61- Card temperature(& dashboard, TEMPERATURE_CARD , "Temperature", "°C");
62- Card humidity(& dashboard, HUMIDITY_CARD , "Humidity", "%");
61+ dash::TemperatureCard< int > tempInt( dashboard, "Temperature", "°C");
62+ dash::HumidityCard< int > humInt( dashboard, "Humidity", "%");
6363
6464
6565void setup(void) {
@@ -166,8 +166,8 @@ void setup(void) {
166166 }
167167
168168 // Demo Route
169- server.on("/demo", HTTP_GET, [ ] ( ) {
170- server. send(200, "text/plain", "Hi! This is NetWizard Demo.");
169+ server.on("/demo", HTTP_GET, [ ] (AsyncWebServerRequest * request ) {
170+ request-> send(200, "text/plain", "Hi! This is NetWizard Demo.");
171171 });
172172
173173 // Internal rewrite for ESP-DASH dashboard
0 commit comments