Kamil Marek / Mbed 2 deprecated Ethernet-SKM

Dependencies:   EthernetInterface mbed-rtos mbed

Fork of FRDM_K64F-Ethernet by Rangel Alvarado

Files at this revision

API Documentation at this revision

Comitter:
dariusz777
Date:
Thu Apr 23 18:48:10 2015 +0000
Parent:
5:f689b3fc93b2
Child:
7:b1bfd14f3ef8
Commit message:
DZIALA ZAJEBISCIE

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Apr 23 18:41:54 2015 +0000
+++ b/main.cpp	Thu Apr 23 18:48:10 2015 +0000
@@ -1,10 +1,10 @@
 #include "mbed.h"
 #include "EthernetInterface.h"
 
-#define IP       "***"
-#define MASK   "***"
-#define GW      "***"
-#define PORT   **
+#define IP       "192.168.0.52"
+#define MASK   "255.255.255.0"
+#define GW      "0.0.0.0"
+#define PORT   80
 
 int main (void){
     EthernetInterface eth;
@@ -37,6 +37,7 @@
                client.send_all(eth.getNetworkMask(),16);
                 }else if(a == 'c'){
                client.close();
+               break;
                 }
                     client.send_all("\n",2);
                     n=0;