-
Notifications
You must be signed in to change notification settings - Fork 24
/
webserver.h
47 lines (42 loc) · 1.91 KB
/
webserver.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// **********************************************************************************
// Remora WEB Server, route web function
// **********************************************************************************
// 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/
//
// This program works with the Remora board
// see schematic here https://github.com/thibdct/programmateur-fil-pilote-wifi
//
// Written by Charles-Henri Hallard (http://hallard.me)
//
// History 2015-06-14 - First release
// 2015-11-31 - Added Remora API
// 2016-01-04 - Added Web Interface part
//
// All text above must be included in any redistribution.
//
// **********************************************************************************
#ifndef ROUTE_H
#define ROUTE_H
// Include main project include file
#include "remora.h"
// Exported variables/object instanciated in main sketch
// =====================================================
extern char response[];
extern uint16_t response_idx;
// declared exported function from webserver.cpp
// ===================================================
void handleFormConfig(AsyncWebServerRequest *request);
void handleFactoryReset(AsyncWebServerRequest *request);
void handleReset(AsyncWebServerRequest *request);
void tinfoJSON(AsyncWebServerRequest *request);
void tinfoJSONTable(AsyncWebServerRequest *request);
void sysJSONTable(AsyncWebServerRequest *request);
void confJSONTable(AsyncWebServerRequest *request);
void spiffsJSONTable(AsyncWebServerRequest *request);
void wifiScanJSON(AsyncWebServerRequest *request);
void handleNotFound(AsyncWebServerRequest *request);
void handle_fw_upload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final);
#endif