From f3ad62eb10847811fa121f55af3cb2a73e4e55e7 Mon Sep 17 00:00:00 2001 From: JayWll Date: Sat, 4 Jan 2020 12:16:26 -0700 Subject: [PATCH] Removing GCP app publishing from the arduino app --- arduino/Houseplant/Houseplant.ino | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/arduino/Houseplant/Houseplant.ino b/arduino/Houseplant/Houseplant.ino index 3bb422c..665a4c3 100644 --- a/arduino/Houseplant/Houseplant.ino +++ b/arduino/Houseplant/Houseplant.ino @@ -53,23 +53,6 @@ void loop() { std::unique_ptrclient(new BearSSL::WiFiClientSecure); client->setInsecure(); - // Publish to GCP app - if (https.begin(*client, "https://houseplantcloud.appspot.com/newreading?s=" + String(gcp_app_secret) + "&v=" + String(reading))) { - int httpCode = https.GET(); - - if (httpCode > 0) { - if (httpCode == HTTP_CODE_OK || httpCode == HTTP_CODE_MOVED_PERMANENTLY) { - String payload = https.getString(); - Serial.print("Response from server: "); - Serial.println(payload); - } - } else { - Serial.printf("Server connection failed: %s\n", https.errorToString(httpCode).c_str()); - } - } else { - Serial.println("Server connection failed"); - } - // Publish to glitch app if (https.begin(*client, "https://jasonsplant.glitch.me/newreading?s=" + String(gcp_app_secret) + "&v=" + String(reading))) { int httpCode = https.GET();