template of http server test program

Dependencies:   C12832_lcd EthernetNetIf HTTPServer mbed

Committer:
khayakawa
Date:
Thu Jul 18 14:30:46 2013 +0000
Revision:
0:148f9f924f8e
template of http server test program

Who changed what in which revision?

UserRevisionLine numberNew contents of line
khayakawa 0:148f9f924f8e 1 #include "mbed.h"
khayakawa 0:148f9f924f8e 2 #include "EthernetNetIf.h"
khayakawa 0:148f9f924f8e 3 #include "HTTPServer.h"
khayakawa 0:148f9f924f8e 4 #include "C12832_lcd.h"
khayakawa 0:148f9f924f8e 5
khayakawa 0:148f9f924f8e 6 C12832_LCD lcd;
khayakawa 0:148f9f924f8e 7
khayakawa 0:148f9f924f8e 8 DigitalOut led1(LED1);
khayakawa 0:148f9f924f8e 9 DigitalOut led2(LED2);
khayakawa 0:148f9f924f8e 10 DigitalOut led3(LED3);
khayakawa 0:148f9f924f8e 11 DigitalOut led4(LED4);
khayakawa 0:148f9f924f8e 12
khayakawa 0:148f9f924f8e 13
khayakawa 0:148f9f924f8e 14
khayakawa 0:148f9f924f8e 15 /*
khayakawa 0:148f9f924f8e 16 * Use DHCP
khayakawa 0:148f9f924f8e 17 */
khayakawa 0:148f9f924f8e 18 // EthernetNetIf ethif;
khayakawa 0:148f9f924f8e 19
khayakawa 0:148f9f924f8e 20 /*
khayakawa 0:148f9f924f8e 21 * Use "static IP address" (Parameters:IP, Subnet mask, Gateway, DNS)
khayakawa 0:148f9f924f8e 22 */
khayakawa 0:148f9f924f8e 23 EthernetNetIf ethif(IpAddr(192,168,50,125),
khayakawa 0:148f9f924f8e 24 IpAddr(255,255,255,0),
khayakawa 0:148f9f924f8e 25 IpAddr(192,168,50,254),
khayakawa 0:148f9f924f8e 26 IpAddr(192,168,110,3));
khayakawa 0:148f9f924f8e 27
khayakawa 0:148f9f924f8e 28
khayakawa 0:148f9f924f8e 29 HTTPServer server;
khayakawa 0:148f9f924f8e 30 LocalFileSystem local("local");
khayakawa 0:148f9f924f8e 31
khayakawa 0:148f9f924f8e 32 int main(void) {
khayakawa 0:148f9f924f8e 33
khayakawa 0:148f9f924f8e 34
khayakawa 0:148f9f924f8e 35 }