fuck this

Dependencies:   BMP280

Committer:
mwthewsey
Date:
Wed Jan 10 03:57:59 2018 +0000
Revision:
25:a2aedb498b27
Parent:
21:6e733076f49c
Final Submission

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Swaggie 2:5a38ae8459d5 1 #ifndef __WebUI__
Swaggie 2:5a38ae8459d5 2 #define __WebUI__
Swaggie 2:5a38ae8459d5 3
mwthewsey 13:41c394fa932c 4 /*
mwthewsey 13:41c394fa932c 5 * This module handles the web interface. WebUISetup() is used to configure the
mwthewsey 13:41c394fa932c 6 * devices.
Swaggie 19:40c721f01ed2 7 * WebUIUpdate() is then attached to a thread.
mwthewsey 13:41c394fa932c 8 * This will wait on receiving a connection, before grabbing the latest samples
mwthewsey 13:41c394fa932c 9 * and making these part of the HTML response.
mwthewsey 13:41c394fa932c 10 */
mwthewsey 9:ac5673cca703 11 #include <string>
mwthewsey 9:ac5673cca703 12 #include "EthernetInterface.h"
mwthewsey 9:ac5673cca703 13 #include "TCPServer.h"
mwthewsey 9:ac5673cca703 14 #include "TCPSocket.h"
mwthewsey 13:41c394fa932c 15 #include "TimeInterface.h"
mwthewsey 21:6e733076f49c 16 #include "Logging.h"
mwthewsey 21:6e733076f49c 17 #include "Serial.h"
mwthewsey 9:ac5673cca703 18 #include <iostream>
mwthewsey 9:ac5673cca703 19
mwthewsey 13:41c394fa932c 20 extern Thread WebThread;
mwthewsey 9:ac5673cca703 21 //Now setup a web server
mwthewsey 9:ac5673cca703 22 extern TCPServer srv; //TCP/IP Server
mwthewsey 9:ac5673cca703 23 extern TCPSocket clt_sock; //Socket for communication
mwthewsey 9:ac5673cca703 24 extern SocketAddress clt_addr; //Address of incoming connection
mwthewsey 9:ac5673cca703 25
Swaggie 2:5a38ae8459d5 26 void WebUISetup(void); //Configures the TCP server
Swaggie 2:5a38ae8459d5 27
mwthewsey 13:41c394fa932c 28 void WebUIUpdate(void); //Might be called as a string, but does have blocking currently.
Swaggie 2:5a38ae8459d5 29
Swaggie 2:5a38ae8459d5 30 #endif