diff --git a/src/Configure.cpp b/src/Configure.cpp index 0881238..1f6eee1 100644 --- a/src/Configure.cpp +++ b/src/Configure.cpp @@ -6,11 +6,10 @@ void Configure::processRequest(WiFiClient &client, char *body, char *formData){ - String s; - String header; - - header+="
"; - header+="HomeSpan Setup
HomeSpan Setup
Initiating WiFi Connection...
"; + responseBody+="" + "Initiating WiFi Connection...
"; } else @@ -30,9 +28,8 @@ void Configure::processRequest(WiFiClient &client, char *body, char *formData){ LOG1("In Get WiFi Status...\n"); - s+="HTTP/1.1 200 OK\r\nContent-type: text/html\r\nRefresh: 5\r\n\r\n" + header; - s+="Trying to Connect ("; - s+=String(millis()/1000) + "sec)...
"; + responseHead+="Refresh: 5\r\n"; + responseBody+="Trying to Connect (" + String(millis()/1000) + "sec)...
"; } else { // LOGIN PAGE @@ -40,27 +37,24 @@ void Configure::processRequest(WiFiClient &client, char *body, char *formData){ int n=WiFi.scanNetworks(); - s+="HTTP/1.1 200 OK\r\nContent-type: text/html\r\n\r\n" + header; - s+="Welcome to HomeSpan! This page allows you to configure the above HomeSpan device to connect to your WiFi network, and (if needed) to create a Setup Code for pairing this device to HomeKit.
"; - s+="The LED on this device should be double-blinking during this configuration.
"; - - s+="