A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.

Dependents:   oldheating gps motorhome heating

Revision:
22:914b970356f0
Parent:
21:02c82594c8c0
--- a/tcp/http.cpp	Thu Jun 29 19:42:28 2017 +0000
+++ b/tcp/http.cpp	Mon Jul 03 14:29:07 2017 +0000
@@ -1,6 +1,7 @@
-#include "mbed.h"
-#include "time.h"
-#include "http.h"
+#include  "mbed.h"
+#include  "time.h"
+#include  "http.h"
+#include "clock.h"
 
 static void dateFromTm(struct tm* ptm, char* ptext)
 {
@@ -9,7 +10,7 @@
 void HttpDateFromNow(char* pText)
 {
     struct tm tm;
-    TimeToTmUtc(time(NULL), &tm);
+    ClockTmUtc(&tm);
     dateFromTm(&tm, pText);
 }
 void HttpDateFromDateTime(const char* date, const char *ptime, char* ptext)