Skip to content

esp program for gathering and sending temperature and humidity with dht22

License

Notifications You must be signed in to change notification settings

SamuelSlavka/smart-home-esp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smart-home-esp

ESP32 rest server providing DHT22 temperature and humidity in json.

Arduino ide setup

preferences -> additional board managers: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json tools -> board -> esp32 dev module tools -> manage libraries isntall based on includes

initialization

set DHTPin value based on your esp.

// praha izba pin 15 // praha vonku 23

Relay has default port 4203. Ssid and passwd are for wifi. Device id is unique identifier for storage of values can be any string.

Create const.h with:

    #define SSID "ssid"
    #define PASSWORD "passwd"
    #define RELAY_IP "[http://addr:port]"
    #define DEVICE_ID "device id as stored in db"

About

esp program for gathering and sending temperature and humidity with dht22

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages