mbd2pmd Web Server uses the mbd2pmd adapter board to serve files from a microSD card and provide a RESTful interface to the Pmod connector.
Dependencies: EthernetInterface MAX14661 PmodInterface SDFileSystem mbd2pmd mbed-rtos mbed
Fork of MBD2PMD_WebServer by
Diff: main.cpp
- Revision:
- 6:df181edf542c
- Parent:
- 5:892b329134ca
diff -r 892b329134ca -r df181edf542c main.cpp --- a/main.cpp Sun May 04 23:10:49 2014 +0000 +++ b/main.cpp Sat May 10 02:58:07 2014 +0000 @@ -1,5 +1,6 @@ #include "mbed.h" #include "EthernetInterface.h" +#include "mbd2pmd.h" #include "PmodInterface.h" #include <stdio.h> #include <string.h> @@ -9,7 +10,7 @@ #define HTTPD_MAX_HDR_LENGTH 255 #define HTTPD_MAX_FNAME_LENGTH 127 #define HTTPD_MAX_DNAME_LENGTH 127 -#define CGI_MAX_RESP_LENGTH 127 +#define CGI_MAX_RESP_LENGTH 255 #define UART_MAX_CMD_LENGTH 127 Serial uart(USBTX, USBRX); @@ -17,9 +18,6 @@ mbd2pmd m2p; PmodInterface pInt; -//SDFileSystem sd(p5, p6, p7, p8, "sd"); // LPC1768 MBD2PMD -//SDFileSystem sd(P0_18, P0_17, P0_15, P0_16, "sd"); // Seeeduino Arch Pro SPI2SD - EthernetInterface eth; TCPSocketServer server; TCPSocketConnection client;