student test for professor
Dependencies: EthernetInterface mbed-rpc mbed-rtos mbed
Fork of HTTP-Server by
Diff: main.cpp
- Revision:
- 11:8d63f2e3d152
- Parent:
- 9:a9bf63017854
--- a/main.cpp Thu Jul 18 10:10:14 2013 +0000 +++ b/main.cpp Tue Oct 14 19:48:41 2014 +0000 @@ -8,6 +8,10 @@ #include "RPCType.h" #define SERVER_PORT 80 +const char ip_addr[17] = "192.168.0.50"; +const char gateway[17] = "192.168.0.1"; +const char networkmask[17] = "255.255.255.0"; + HTTPServer create_simple_server() { @@ -30,7 +34,7 @@ RPCType::instance().register_types(); EthernetInterface eth; - if(eth.init()) + if(eth.init(ip_addr, networkmask, gateway)) { printf("Error while initializing the ethernet interface.\n"); return -1;