diff --git a/src/main.cpp b/src/main.cpp index fff7411..fb3eb64 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -48,6 +48,9 @@ unsigned long sendDeviceStatus() { http.addHeader("Content-Type", "application/x-www-form-urlencoded"); String httpData = "mac=" + WiFi.macAddress() + "&board=" + BOARD + "&firmware=" + BOARDFIRMWARE + "&service=" + SERVICE; int httpResponseCode = http.POST(httpData); + if ( DEBUG && (httpResponseCode != 200) ) { + Serial.println("Error sending status: " + String(httpResponseCode)); + } http.end(); return millis(); }