Plymouth ELEC351 Group T / Mbed OS ELEC351_Group_T

Fork of ELEC351 by Plymouth ELEC351 Group T

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