Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface mbed-rtos mbed
Fork of FRDM_K64F-Ethernet by
Revision 6:0ace244a8a9a, committed 2015-04-23
- 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;
