Архив метки: ESPWebConfig

Часть 2 Загрузка

esp8266

Ядро esp8266/Arduino :
https://github.com/esp8266/Arduino
Библиотека ESPWebConfig: https://github.com/imerso/ESPWebConfig

Скетч:

// =================================== ======= === = == =  =  = -- - -
// Basic Web Config example
//
// Written by Vander 'imerso' Nunes | imersiva.com
// ======================================= ======= === == == =  =  = -- - -

#include <EEPROM.h>
#include <ESP8266WiFi.h>
#include <WebConfig.h>

WebConfig* pWebConfig;


// Initialize the system
void setup()
{
  // Старт Serial
  Serial.begin(115200);
  pWebConfig = new WebConfig("BASIC WEBCONFIG v1.0", "ESP8266", "82668266", false);
// Print the IP address
  Serial.println("");
  Serial.println(WiFi.localIP());
}


// Serve HTTP configuration interface
void loop()
{
  pWebConfig->ProcessHTTP();
  yield();
}