diff --git a/ampel-firmware/web_server.cpp b/ampel-firmware/web_server.cpp index cded47589c10c00feb63df6a35fe224bae3e1266..fcbc13e440d9741e014c89ab26cb1e9d45e7c1b9 100644 --- a/ampel-firmware/web_server.cpp +++ b/ampel-firmware/web_server.cpp @@ -58,15 +58,9 @@ namespace web_server { WebServer http(80); #endif - // -- Initial name of the Thing. Used e.g. as SSID of the own Access Point. - const char thingName[] = "ampel_wifi"; - - // -- Initial password to connect to the Thing, when it creates an own Access Point. - const char wifiInitialApPassword[] = "12345678"; - DNSServer dnsServer; - IotWebConf iotWebConf(thingName, &dnsServer, &http, wifiInitialApPassword); + IotWebConf iotWebConf(ampel.sensorId, &dnsServer, &http, HTTP_PASSWORD); void update() { iotWebConf.doLoop();