PROJ515 / Mbed OS ELEC-351-GROUP-E-CW

Dependencies:   BMP280

WebUI.h

Committer:
mwthewsey
Date:
2018-01-06
Revision:
9:ac5673cca703
Parent:
2:5a38ae8459d5
Child:
13:41c394fa932c

File content as of revision 9:ac5673cca703:

#ifndef __WebUI__
#define __WebUI__

#include <string>
#include "EthernetInterface.h"
#include "TCPServer.h"
#include "TCPSocket.h"
#include <iostream> 

//Now setup a web server
extern TCPServer srv;           //TCP/IP Server
extern TCPSocket clt_sock;      //Socket for communication
extern SocketAddress clt_addr;  //Address of incoming connection

void WebUISetup(void);  //Configures the TCP server

void WebUIUpdate(float ldr); //Might be called as a string, but does have blocking currently.

#endif