Solar Weather Station - Implementing "deepSleep"

dominom
Posts: 11
Joined: Wed Jul 12, 2023 3:04 pm

Post

Hello,
Can you help me with implementing deepSleep function in my SUpla Weather Station based on DHT11
I want to sleep my ESP8266 every for 1 minute every temperature read.

Code: Select all

#include <SuplaDevice.h>
#include <supla/sensor/DHT.h>

#define STORAGE_OFFSET 100
#include <supla/storage/eeprom.h>
Supla::Eeprom eeprom(STORAGE_OFFSET);

#define DHT1PIN 2
#define DHT1TYPE DHT11

void setup() {

  Serial.begin(115200);

  digitalWrite(16, LOW);// set the above pin as LOW so it acts as Ground

  // CHANNEL0 - DHT22 Sensor
  new Supla::Sensor::DHT(DHT1PIN, DHT1TYPE);

 
  SuplaDevice.begin(GUID,.......)
}

void loop() {
  SuplaDevice.iterate();
}

Return to “Help”