student test for professor

Dependencies:   EthernetInterface mbed-rpc mbed-rtos mbed

Fork of HTTP-Server by Francois Berder

Files at this revision

API Documentation at this revision

Comitter:
pricegc2
Date:
Tue Oct 14 19:48:41 2014 +0000
Parent:
10:8b4c3d605bf0
Commit message:
rev 1

Changed in this revision

EthernetInterface.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-rpc.lib Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/EthernetInterface.lib	Thu Jul 18 10:10:14 2013 +0000
+++ b/EthernetInterface.lib	Tue Oct 14 19:48:41 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/feb11/code/EthernetInterface/#f533841d34cb
+http://mbed.org/users/mbed_official/code/EthernetInterface/#5887ae6c0c2c
--- 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;
--- a/mbed-rpc.lib	Thu Jul 18 10:10:14 2013 +0000
+++ b/mbed-rpc.lib	Tue Oct 14 19:48:41 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rpc/#1ecadde1c929
+http://mbed.org/users/mbed_official/code/mbed-rpc/#4490a0d9cb2a
--- a/mbed-rtos.lib	Thu Jul 18 10:10:14 2013 +0000
+++ b/mbed-rtos.lib	Tue Oct 14 19:48:41 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#58b30ac3f00e
+http://mbed.org/users/mbed_official/code/mbed-rtos/#aaa1b2c7c64c
--- a/mbed.bld	Thu Jul 18 10:10:14 2013 +0000
+++ b/mbed.bld	Tue Oct 14 19:48:41 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/b3110cd2dd17
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file