Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BMP280
WebUI.h
- Committer:
- mwthewsey
- Date:
- 2018-01-09
- Revision:
- 21:6e733076f49c
- Parent:
- 19:40c721f01ed2
File content as of revision 21:6e733076f49c:
#ifndef __WebUI__
#define __WebUI__
/*
* This module handles the web interface. WebUISetup() is used to configure the
* devices.
* WebUIUpdate() is then attached to a thread.
* This will wait on receiving a connection, before grabbing the latest samples
* and making these part of the HTML response.
*/
#include <string>
#include "EthernetInterface.h"
#include "TCPServer.h"
#include "TCPSocket.h"
#include "TimeInterface.h"
#include "Logging.h"
#include "Serial.h"
#include <iostream>
extern Thread WebThread;
//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(void); //Might be called as a string, but does have blocking currently.
#endif