WWW serwer SKM
Dependencies: SDFileSystem mbed
Fork of SKM_SERWER_WWW by
Revision 4:6796e73072c0, committed 2018-11-06
- Comitter:
- barti19941
- Date:
- Tue Nov 06 15:21:02 2018 +0000
- Parent:
- 3:c05bbec8d96b
- Commit message:
- Wersja 1
Changed in this revision
diff -r c05bbec8d96b -r 6796e73072c0 EthernetInterface.lib --- 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
diff -r c05bbec8d96b -r 6796e73072c0 SDFileSystem.lib --- 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
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) + { + + } }
diff -r c05bbec8d96b -r 6796e73072c0 mbed-rtos.lib --- 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
diff -r c05bbec8d96b -r 6796e73072c0 mbed.bld --- 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