LOGGER  Logger
Data Logging using ESP8266
webservices.h
Go to the documentation of this file.
1 //
5 // Copyright (c) 2015 by Dragonnorth Group, all rights reserved.
6 //
7 // Author: Michael Newman
8 #ifndef webservicesHedit
9 #define webservicesHedit 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 "basetype.h"
17 
19 extern Print *pWebPrint;
20 
22 extern void webServicesInit();
23 
25 extern void webServicesLoop();
26 
27 
29 extern void webXMLstartFile();
30 
32 extern void webXMLendFile();
33 
41 extern void webStartPage(const char *pName = "");
42 
45 extern void webEndPage();
46 
52 extern void servicePageArguments();
53 
65 EXTERNDEF void emitButton(Print *pPrint,
66  const char *pTitle,
67  const char *pValue,
68  bool highlight=false,
69  bool enabled = true);
70 
79 extern void emitButtonTD(Print *pPrint,
80  const char *pTitle,
81  const char *pValue,
82  bool highlight = false,
83  bool enabled = true);
84 
85 
98 extern void emitNumberInput(Print *pPrint,
99  String prefix,String name,
100  int32_t defaultValue,
101  int digits,
102  int minAllowed,
103  int maxAllowed);
104 
121 extern void emitGenericSelector(Print *pPrint,
122  String prefix,
123  const char *pName,
124  String selectedName,
125  const char * const pNames[],
126  bool isEnabled = true);
127 
128 
143 extern void emitMonthSelector(Print *pPrint,
144  String prefix,
145  const char *pName,
146  uint8_t month);
147 
156 extern String getDefaultedArgument(String name, String defaultValue = "");
157 
162 extern bool webservicesDoesArgumentExist(const char *pName);
163 
169 
171 extern void versionPage();
172 
173 #endif // defined(webservicesHedit)
void webXMLstartFile()
Start a XML file output.
Definition: webservices.cpp:111
String getDefaultedArgument(String name, String defaultValue="")
Definition: webservices.cpp:310
void webServicesLoop()
Perform periodic tasks managing web services.
Definition: webservices.cpp:304
void emitButtonTD(Print *pPrint, const char *pTitle, const char *pValue, bool highlight=false, bool enabled=true)
Definition: webservices.cpp:155
void webservicesSetPermanentVariableFromArguments()
Definition: webservices.cpp:337
void webStartPage(const char *pName="")
Definition: webservices.cpp:60
void webXMLendFile()
End an XML file output.
Definition: webservices.cpp:118
void emitMonthSelector(Print *pPrint, String prefix, const char *pName, uint8_t month)
Definition: webservices.cpp:224
void versionPage()
Report version information.
Definition: webservices.cpp:345
void emitNumberInput(Print *pPrint, String prefix, String name, int32_t defaultValue, int digits, int minAllowed, int maxAllowed)
Definition: webservices.cpp:168
void emitGenericSelector(Print *pPrint, String prefix, const char *pName, String selectedName, const char *const pNames[], bool isEnabled=true)
Definition: webservices.cpp:195
EXTERNDEF void emitButton(Print *pPrint, const char *pTitle, const char *pValue, bool highlight=false, bool enabled=true)
Definition: webservices.cpp:124
Print * pWebPrint
< version of this include file
Definition: webservices.cpp:58
void servicePageArguments()
Definition: webservices.cpp:248
bool webservicesDoesArgumentExist(const char *pName)
Definition: webservices.cpp:332
void webEndPage()
Definition: webservices.cpp:96
void webServicesInit()
Initialize the web services.