LibTeleinfo/examples/Wifinfo/webserver.h

56 lines
1.8 KiB
C
Raw Normal View History

2015-07-29 21:18:08 +02:00
// **********************************************************************************
// ESP8266 Teleinfo WEB Server routing Include file
// **********************************************************************************
// Creative Commons Attrib Share-Alike License
// You are free to use/extend this library but please abide with the CC-BY-SA license:
// Attribution-NonCommercial-ShareAlike 4.0 International License
// http://creativecommons.org/licenses/by-nc-sa/4.0/
//
// For any explanation about teleinfo ou use , see my blog
// http://hallard.me/category/tinfo
//
// This program works with the Wifinfo board
// see schematic here https://github.com/hallard/teleinfo/tree/master/Wifinfo
//
// Written by Charles-Henri Hallard (http://hallard.me)
//
// History : V1.00 2015-06-14 - First release
//
// All text above must be included in any redistribution.
//
// **********************************************************************************
#ifndef WEBSERVER_H
#define WEBSERVER_H
2015-07-29 21:18:08 +02:00
// Include main project include file
#include "Wifinfo.h"
2015-07-29 21:18:08 +02:00
// Web response max size
#define RESPONSE_BUFFER_SIZE 4096
// Exported variables/object instancied in main sketch
// ===================================================
extern char response[];
extern uint16_t response_idx;
// declared exported function from route.cpp
// ===================================================
void handleTest(void);
void handleRoot(void);
void handleFormConfig(void) ;
2015-07-29 21:18:08 +02:00
void handleNotFound(void);
void tinfoJSONTable(void);
void getSysJSONData(String & r);
2015-07-29 21:18:08 +02:00
void sysJSONTable(void);
void getConfJSONData(String & r);
void confJSONTable(void);
void getSpiffsJSONData(String & r);
void spiffsJSONTable(void);
2015-07-29 21:18:08 +02:00
void sendJSON(void);
void wifiScanJSON(void);
void handleFactoryReset(void);
void handleReset(void);
2015-07-29 21:18:08 +02:00
#endif