WWW serwer SKM

Dependencies:   SDFileSystem mbed

Fork of SKM_SERWER_WWW by Dawid Bartosiak

Files at this revision

API Documentation at this revision

Comitter:
barti19941
Date:
Tue Nov 06 15:21:02 2018 +0000
Parent:
3:c05bbec8d96b
Commit message:
Wersja 1

Changed in this revision

EthernetInterface.lib Show diff for this revision Revisions of this file
SDFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/EthernetInterface.lib	Wed Dec 13 17:42:27 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/EthernetInterface/#5887ae6c0c2c
--- a/SDFileSystem.lib	Wed Dec 13 17:42:27 2017 +0000
+++ b/SDFileSystem.lib	Tue Nov 06 15:21:02 2018 +0000
@@ -1,1 +1,1 @@
-http://os.mbed.com/users/mbed_official/code/SDFileSystem/#8db0d3b02cec
+https://os.mbed.com/users/neilt6/code/SDFileSystem/#e4d2567200db
--- 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) 
+    {
+
+    }
 }
--- a/mbed-rtos.lib	Wed Dec 13 17:42:27 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#631c0f1008c3
--- a/mbed.bld	Wed Dec 13 17:42:27 2017 +0000
+++ b/mbed.bld	Tue Nov 06 15:21:02 2018 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file