Last active
January 8, 2018 19:19
-
-
Save Ozsie/eeadb6ffb3269ed71e123af2fdfd9a44 to your computer and use it in GitHub Desktop.
WiFi AP 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 <ESP8266WebServer.h> | |
#include <ESP8266WiFi.h> | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#include <EEPROM.h> | |
ESP8266WebServer server(80); | |
#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