ESP3D/esp8266/webinterface.h
luc lebosse 2f1ee7abc9 Page Information and Page Configuration sample
backbone for Information page and configuration page
2015-04-21 11:20:59 +08:00

41 lines
1.2 KiB
C++

/*
webinterface.h - esp8266 configuration class
Copyright (c) 2014 Luc Lebosse. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef WEBINTERFACE_h
#define WEBINTERFACE_h
#include <Arduino.h>
#include <WiFiClient.h>
#include <WiFiServer.h>
#include <ESP8266WebServer.h>
class WEBINTERFACE_CLASS
{
public:
WEBINTERFACE_CLASS (int port = 82);
ESP8266WebServer WebServer;
void urldecode(char *dst, const char *src);
private:
};
extern WEBINTERFACE_CLASS web_interface;
#endif