Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from VegasIOT/patch-1
Browse files Browse the repository at this point in the history
Update HiGrowEsp32.ino
  • Loading branch information
lucafabbri authored May 4, 2019
2 parents 3c35538 + aac562f commit f1e1a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HiGrowEsp32/HiGrowEsp32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//#define DHTTYPE DHT11 // DHT 11
//#define DHTTYPE DHT21 // DHT 21 (AM2301)
#define DHTTYPE DHT11 // DHT 22 (AM2302), AM2321
#define uS_TO_S_FACTOR 1000000
#define uS_TO_S_FACTOR 1000000LL

unsigned long now;
int DEEPSLEEP_SECONDS = 1800;
Expand Down Expand Up @@ -72,7 +72,7 @@ void loop() {
http.addHeader("Content-Type", "application/json");
int httpResponseCode = http.POST(body);
Serial.println(httpResponseCode);
esp_deep_sleep_enable_timer_wakeup(DEEPSLEEP_SECONDS * uS_TO_S_FACTOR);
esp_sleep_enable_timer_wakeup(DEEPSLEEP_SECONDS * uS_TO_S_FACTOR);
esp_deep_sleep_start();

}
Expand Down

0 comments on commit f1e1a2d

Please sign in to comment.