template of http server test program
Dependencies: C12832_lcd EthernetNetIf HTTPServer mbed
Diff: main.cpp
- Revision:
- 0:148f9f924f8e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Jul 18 14:30:46 2013 +0000 @@ -0,0 +1,35 @@ +#include "mbed.h" +#include "EthernetNetIf.h" +#include "HTTPServer.h" +#include "C12832_lcd.h" + +C12832_LCD lcd; + +DigitalOut led1(LED1); +DigitalOut led2(LED2); +DigitalOut led3(LED3); +DigitalOut led4(LED4); + + + +/* + * Use DHCP + */ +// EthernetNetIf ethif; + +/* + * Use "static IP address" (Parameters:IP, Subnet mask, Gateway, DNS) + */ + EthernetNetIf ethif(IpAddr(192,168,50,125), + IpAddr(255,255,255,0), + IpAddr(192,168,50,254), + IpAddr(192,168,110,3)); + + + HTTPServer server; + LocalFileSystem local("local"); + +int main(void) { + + +}