I hereby claim:
- I am ozsie on github.
- I am ozsie (https://keybase.io/ozsie) on keybase.
- I have a public key ASCWFMLeG3ccWW4K51uZTsReWCKTjvEkpmRl0aeeJIsA6Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
void setup() { | |
// put your setup code here, to run once: | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
} |
void setup() { | |
Serial.begin(115200); | |
Serial.println("Hello World"); | |
} | |
void loop() { | |
} |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#define ONE_WIRE_BUS 2 // DS18B20 pin | |
OneWire oneWire(ONE_WIRE_BUS); | |
DallasTemperature DS18B20(&oneWire); | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("Hello World"); |
#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); |
#include "wifitemp.h" | |
void storeEeprom() { | |
EEPROM.begin(eepromSize); | |
EEPROM.put(0, conf); | |
char ok[2+1] = "OK"; | |
EEPROM.put(0+sizeof(conf), ok); | |
bool commited = EEPROM.commit(); | |
EEPROM.end(); | |
Serial.print("Commit result: "); |
#include "wifitemp.h" | |
bool isConfigured() { | |
return (strlen(conf.wifiPassword) != 0 && strlen(conf.wifiSsid)); | |
} | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("Hello World"); |
#ifndef WIFI_TEMP | |
#define WIFI_TEMP | |
#include <ESP8266WebServer.h> | |
#include <ESP8266WiFi.h> | |
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#include <EEPROM.h> | |
ESP8266WebServer server(80); |
#include "wifitemp.h" | |
void setupServer() { | |
delay(1000); | |
Serial.println(); | |
Serial.print("Configuring access point..."); | |
const char *ssid = "wifi-temp"; | |
const char *password = "wifi-temp"; |
#include "wifitemp.h" | |
bool isConfigured() { | |
return (strlen(conf.wifiPassword) != 0 && strlen(conf.wifiSsid)); | |
} | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("Hello World"); |