Improved readability

pull/41/head
Hieromon Ikasamo 6 years ago
parent c3e7069d7c
commit de3231f1f6
  1. 13
      examples/Simple/Simple.ino

@ -17,12 +17,6 @@
#include <time.h>
#include <AutoConnect.h>
#if defined(ARDUINO_ARCH_ESP8266)
ESP8266WebServer Server;
#elif defined(ARDUINO_ARCH_ESP32)
WebServer Server;
#endif
static const char AUX_TIMEZONE[] PROGMEM = R"(
{
"title": "TimeZone",
@ -89,6 +83,12 @@ static const Timezone_t TZ[] = {
{ "Pacific/Samoa", "oceania.pool.ntp.org", -11 }
};
#if defined(ARDUINO_ARCH_ESP8266)
ESP8266WebServer Server;
#elif defined(ARDUINO_ARCH_ESP32)
WebServer Server;
#endif
AutoConnect Portal(Server);
AutoConnectConfig Config; // Enable autoReconnect supported on v0.9.4
AutoConnectAux Timezone;
@ -178,4 +178,3 @@ void setup() {
void loop() {
Portal.handleClient();
}

Loading…
Cancel
Save