 
     Serial.printf("Next loop in %d msec", LOOP_INTERVAL_MSEC);
 
-    // Blink success led
-    digitalWrite(LED_STATUS_PIN, HIGH);
+    // Blink led
+    digitalWrite(statusLed, HIGH);
     delay(500);
-    digitalWrite(LED_STATUS_PIN, LOW);
+    digitalWrite(statusLed, LOW);
 
     delay(LOOP_INTERVAL_MSEC);
 

        if(httpCode == HTTP_CODE_OK) {
            String payload = http.getString();
            Serial.println(payload);
        }
    } else {
        Serial.printf("[HTTP] POST... failed, error: %s\n", http.errorToString(httpCode).c_str());

  Serial.begin(115200);
  Serial.println("Starting...");
  pinMode(WIFI_STATUS_LED_PIN, OUTPUT);
  pinMode(HTTP_LED_SUCCESS_PIN, OUTPUT);
  pinMode(HTTP_LED_ERROR_PIN, OUTPUT);
  connectToWifi();
}

