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 5:f689b3fc93b2, committed 2015-04-23
- Comitter:
- dariusz777
- Date:
- Thu Apr 23 18:41:54 2015 +0000
- Parent:
- 4:edeb4d3d1968
- Child:
- 6:0ace244a8a9a
- Commit message:
- na zajecia ok2
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:38:21 2015 +0000
+++ b/main.cpp Thu Apr 23 18:41:54 2015 +0000
@@ -6,21 +6,17 @@
#define GW "***"
#define PORT **
-void getsth(char a, EthernetInterface e, TCPSocketConnection cli);
-
int main (void){
EthernetInterface eth;
eth.init(IP, MASK, GW); //Assign a device ip, mask and gateway
// eth.init();
eth.connect();
- printf("IP Address is %s\n", eth.getIPAddress());
-
+
TCPSocketServer server;
server.bind(PORT);
server.listen();
while (true) {
- printf("\nWait for new connection...\n");
TCPSocketConnection client;
server.accept(client);
client.set_blocking(false, 1500); // Timeout after (1.5)s
