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

Update HiGrowEsp32.ino #2

Merged
merged 1 commit into from
May 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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