Last active
January 8, 2018 11:55
-
-
Save Ozsie/72fd7378f33eab5daaad7fdddef04105 to your computer and use it in GitHub Desktop.
Wifi thermometer header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef WIFI_TEMP | |
#define WIFI_TEMP | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#include <EEPROM.h> | |
#define ONE_WIRE_BUS 2 // DS18B20 pin | |
OneWire oneWire(ONE_WIRE_BUS); | |
DallasTemperature DS18B20(&oneWire); | |
typedef struct Configuration { | |
char wifiSsid[32] = ""; | |
char wifiPassword[32] = ""; | |
} Configuration; | |
Configuration conf; | |
unsigned int eepromSize = sizeof(conf) + sizeof("OK"); | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment