fuck this

Dependencies:   BMP280

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers WebUI.h Source File

WebUI.h

00001 #ifndef __WebUI__
00002 #define __WebUI__
00003 
00004 /*
00005 * This module handles the web interface. WebUISetup() is used to configure the
00006 * devices.
00007 * WebUIUpdate() is then attached to a thread.
00008 * This will wait on receiving a connection, before grabbing the latest samples
00009 * and making these part of the HTML response.
00010 */
00011 #include <string>
00012 #include "EthernetInterface.h"
00013 #include "TCPServer.h"
00014 #include "TCPSocket.h"
00015 #include "TimeInterface.h"
00016 #include "Logging.h"
00017 #include "Serial.h"
00018 #include <iostream> 
00019 
00020 extern Thread WebThread;
00021 //Now setup a web server
00022 extern TCPServer srv;           //TCP/IP Server
00023 extern TCPSocket clt_sock;      //Socket for communication
00024 extern SocketAddress clt_addr;  //Address of incoming connection
00025 
00026 void WebUISetup(void);  //Configures the TCP server
00027 
00028 void WebUIUpdate(void); //Might be called as a string, but does have blocking currently.
00029 
00030 #endif