Skip to content

Instantly share code, notes, and snippets.

@Ozsie
Last active January 8, 2018 19:19
Show Gist options
  • Save Ozsie/eeadb6ffb3269ed71e123af2fdfd9a44 to your computer and use it in GitHub Desktop.
Save Ozsie/eeadb6ffb3269ed71e123af2fdfd9a44 to your computer and use it in GitHub Desktop.
WiFi AP header
#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