STS2 MBED lycee victor hugo Besancon

Dependencies:   EthernetInterface mbed-rtos mbed

Revision:
0:ce84113bb913
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Mar 24 09:30:11 2015 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "EthernetInterface.h"
+static const char*          mbedIp       = "192.168.1.102";  //IP
+static const char*          mbedMask     = "255.255.255.0";  // Mask
+static const char*          mbedGateway  = "192.168.1.1";    //Gateway
+ 
+ 
+
+int main() {
+EthernetInterface  eth;
+eth.init(mbedIp,mbedMask,mbedGateway); //Use  these parameters for static IP
+eth.connect();
+pc.printf("Connected! IP Address is %s\n", eth.getIPAddress());
+}
+
+