WWW serwer SKM

Dependencies:   SDFileSystem mbed

Fork of SKM_SERWER_WWW by Dawid Bartosiak

Revision:
4:6796e73072c0
Parent:
3:c05bbec8d96b
diff -r c05bbec8d96b -r 6796e73072c0 main.cpp
--- a/main.cpp	Wed Dec 13 17:42:27 2017 +0000
+++ b/main.cpp	Tue Nov 06 15:21:02 2018 +0000
@@ -1,11 +1,24 @@
 #include "mbed.h"
-#include "EthernetInterface.h"
 #include "SDFileSystem.h"
-#include <string.h>
-#include <stdio.h>
+
+Serial pc(USBTX, USBRX);
+
+
+void Send_Data()
+{    
+    char index[]= "<!DOCTYPE html>\n<html>\n<head>\n<title>Page Title</title>\n</head>\n<body>\n<h1>Hello World!!!</h1>\n<p>My first paragraph.</p>\nMoja strona www:\n</body>\n</html>\n";
+    client.send(index, sizeof(index));   
+    client_is_connected = false;              
+}
 
 int main() 
 {
-    
-    return 0;
+    pc.baud(9600);
+    printf("Zainicjowano UART! \n");
+    printf("Predkosc bitowa transmisji - 9600/s.\n");
+    Initialize_Server();
+    while (1) 
+    {
+
+    }
 }