-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebclient.h
48 lines (42 loc) · 1.67 KB
/
webclient.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
48
// **********************************************************************************
// ESP8266 Teleinfo WEB Client 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-12-04 - First release
//
// All text above must be included in any redistribution.
//
// **********************************************************************************
#ifndef WEBCLIENT_H
#define WEBCLIENT_H
// Include main project include file
#include "Wifinfo.h"
// Exported variables/object instancied in main sketch
// ===================================================
extern bool need_reinit;
// Exported function instancied in webserver.cpp
// =============================================
extern bool validate_value_name(String name);
// declared exported function from webclient.cpp
// ===================================================
boolean httpPost(char * host, uint16_t port, char * url);
boolean emoncmsPost(void);
boolean jeedomPost(void);
boolean httpRequest(void);
boolean UPD_switch(void);
boolean UPD_ADPS(void);
boolean UPD_I(void);
String build_emoncms_json(void);
#endif