LOGGER  Logger
Data Logging using ESP8266
webpages.h
Go to the documentation of this file.
1 //
5 // Copyright (c) 2016 by Dragonnorth Group, all rights reserved.
6 //
7 // Author: Michael Newman
8 #ifndef webpagesHedit
9 #define webpagesHedit 1
10 // 20Jun14 MJNewman 1: Created
11 //
12 // An unrestricted license to this software is granted to:
13 // Airborne Sensor, Inc.
14 // and may be granted to others.
15 
16 #include <arduino.h>
17 #include "basetype.h"
18 
20 extern void webpagesInit();
21 
23 extern void webEmitMainMenu(Print *pPrint);
24 
26 extern void webEmitHeader(Print *pPrint);
27 
32 extern void webUpdateTime(const char *pTimeZone);
33 
36 extern void handleRootPage();
37 
43 extern void processButtonCommand(Print *pPrint,String buttonName);
44 
51 extern void processPulldownSelected(Print *pPrint,
52  String pulldownName,
53  String pulldownValue);
54 
56 typedef enum {
57  ConfigModeAPconfig, // run as Access point until a network is chosen.
58  ConfigModeAPstartup, // run as Access point and web server (reboot after 5 min)
59  ConfigModeNormal, // run as just a web server
60  ConfigModeBoth // run continuously as both
61 } ConfigMode_t;
64 
67 
69 extern void handleIntervalsPage();
70 
72 extern void handleNetworkConfigurationPage();
73 
75 extern void handleIOpinControlPage();
76 
78 extern void handleParametersPage();
79 
81 extern void handleSamplesPage();
82 
84 extern void handleSensorsPage();
85 
98 extern void emitDaytimeInput(Print *pPrint,
99  String prefix,
100  int32_t defaultYear,int32_t defaultMonth,int32_t defaultDay,
101  int32_t defaultHour,int32_t defaultMin,int32_t defaultSec);
102 
115 extern time_t getTimeFromArguments(String prefix,time_t defaultTime);
116 
117 #endif // defined(webpagesHedit)
ConfigMode_t savedConfigMode
Remember what mode to run in next.
Definition: webpages.cpp:38
void handleIntervalsPage()
Display web page for intervals.
Definition: webpages.cpp:956
void handleIOpinControlPage()
display the I/O pin control page
Definition: webpages.cpp:978
void processButtonCommand(Print *pPrint, String buttonName)
Definition: webpages.cpp:150
void handleSamplesPage()
display the sample history page
Definition: webpages.cpp:875
void webUpdateTime(const char *pTimeZone)
Definition: webpages.cpp:1024
time_t getTimeFromArguments(String prefix, time_t defaultTime)
Definition: webpages.cpp:204
void handleParametersPage()
Display all of the permanent parameters on a web page.
Definition: webpages.cpp:925
ConfigMode_t runningConfigMode
Mode we are currently running in.
Definition: webpages.cpp:40
void handleNetworkConfigurationPage()
display the network configuration page
Definition: webservices.cpp:278
void webEmitHeader(Print *pPrint)
Emit the header section of a web page.
Definition: webpages.cpp:180
void webEmitMainMenu(Print *pPrint)
Emit the main menu.
Definition: webpages.cpp:107
void processPulldownSelected(Print *pPrint, String pulldownName, String pulldownValue)
Definition: webpages.cpp:168
ConfigMode_t
Mode to run in.
Definition: webpages.h:56
void webpagesInit()
< version of this include file
Definition: webpages.cpp:79
void handleRootPage()
Definition: webpages.cpp:189
void handleSensorsPage()
display the sensors page
Definition: webpages.cpp:999
void emitDaytimeInput(Print *pPrint, String prefix, int32_t defaultYear, int32_t defaultMonth, int32_t defaultDay, int32_t defaultHour, int32_t defaultMin, int32_t defaultSec)
Definition: webpages.cpp:279