Skip to content

Instantly share code, notes, and snippets.

@squix78 squix78/DHTLogger.cpp
Last active Jan 4, 2016

What would you like to do?
* Begin Settings
const char* ssid = "yourssid";
const char* password = "yourpassw0rd";
const char* host = "";
const char* THINGSPEAK_API_KEY = "XXX";
// DHT Settings
#define DHTPIN D6 // what digital pin we're connected to. If you are not using NodeMCU change D6 to real pin
// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321
//#define DHTTYPE DHT21 // DHT 21 (AM2301)
const boolean IS_METRIC = true;
// Update every 600 seconds = 10 minutes. Min with Thingspeak is ~20 seconds
* End Settings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.