Skip to content

Instantly share code, notes, and snippets.

#include <ESPHASDevice.h>
////////////////////////////////////////////////////////////
// HTML
////////////////////////////////////////////////////////////
/*
const char index_html[] PROGMEM = R"rawliteral(
<!DOCTYPE HTML><html>
<head>
#include "ESPHASDevice.h"
#include <Encoder.h>
#include <AccelStepper.h>
const String DEVICETYPE = "curtainopener"; // lowercase
const String VERSION = "v0.35";
const String EEPROMVERSION = "v0.10";
ESPHASDevice device;
EEPROMInt* currentPosition = device.AddSettingInt("currentPosition", 0);
#ifndef ESPHASDevice_h
#define ESPHASDevice_h
//#define Sprintln(a) (Serial.println(a))
#define Sprintln(a)
#include <ESP8266HTTPClient.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266HTTPUpdateServer.h>
https://lwscomsit3.lowes.com/pd/Samsung-Family-Hub-Wi-Fi-Enabled-Family-Hub-27-9-cu-ft-4-Door-French-Door-Refrigerator-with-Ice-Maker-Fingerprint-Resistant-Stainless-Steel-ENERGY-STAR/1000437535