WWW serwer SKM
Dependencies: SDFileSystem mbed
Fork of SKM_SERWER_WWW by
main.cpp
- Committer:
- barti19941
- Date:
- 2018-11-06
- Revision:
- 4:6796e73072c0
- Parent:
- 3:c05bbec8d96b
File content as of revision 4:6796e73072c0:
#include "mbed.h" #include "SDFileSystem.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() { pc.baud(9600); printf("Zainicjowano UART! \n"); printf("Predkosc bitowa transmisji - 9600/s.\n"); Initialize_Server(); while (1) { } }