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.
Fork of ELEC351 by
Diff: NETWORK.hpp
- Revision:
- 52:99915f5240b2
- Parent:
- 51:47f5db68500b
--- a/NETWORK.hpp Tue Jan 09 15:15:08 2018 +0000 +++ b/NETWORK.hpp Tue Jan 09 22:27:49 2018 +0000 @@ -1,6 +1,5 @@ /* This is where we define our network functions and bodys of the webpage - */ #if !FEATURE_LWIP @@ -9,7 +8,7 @@ #ifndef NETWORK_HPP//Header Guards Prevents Multiple includes #define NETWORK_HPP - +//Libraries and header includes #include "mbed.h" #include "rtos.h" #include "EthernetInterface.h" @@ -19,12 +18,16 @@ #include <string> #include "TIME.hpp" #include "SERIAL.hpp" +#include "LED_LOGGING.hpp" -#define NetworkWait 5000 +#define NetworkWait 5000//Default network update time in ms #define HTTP_STATUS_LINE "HTTP/1.0 200 OK" #define HTTP_HEADER_FIELDS "Content-Type: text/html; charset=utf-8" + +//HTML CODE + #define HTTP_MESSAGE_BODY1 "" \ "<html>" "\r\n" \ "<title>Environment Sensing </title>" \ @@ -49,7 +52,7 @@ #define GATEWAY "10.0.0.1" -int Network_Init(); -void Networking(); +int Network_Init();//Network Initialisation routine +void Networking();//Write to network #endif \ No newline at end of file
