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 LM75B mbed-rtos mbed
Fork of communication by
Diff: master.cpp
- Revision:
- 1:550192b4ae8e
- Parent:
- 0:52e944ca21ea
- Child:
- 2:067142778937
diff -r 52e944ca21ea -r 550192b4ae8e master.cpp
--- a/master.cpp Tue Mar 13 09:40:51 2018 +0000
+++ b/master.cpp Tue Mar 13 10:31:27 2018 +0000
@@ -30,7 +30,7 @@
}
char ipArray[14]={NULL};
- masterpc.printf("insert ip address to send to:\n\r ");
+ masterpc.printf("\n\rinsert ip address to send to:\n\r ");
for(int i = 0;i<14;i++){
char key = masterpc.getc();
if(key != 13){
@@ -47,7 +47,7 @@
const char *ECHO_SERVER_ADDRESS = ipArray;
Endpoint echo_server;
echo_server.set_address(ECHO_SERVER_ADDRESS,4000);
- masterpc.printf("Sending \"%s\" to IPAddress :%s\n\r",masterBuffer,ECHO_SERVER_ADDRESS);
+ masterpc.printf("\n\rSending \"%s\" to IPAddress :%s\n\r",masterBuffer,ECHO_SERVER_ADDRESS);
sock.sendTo(echo_server,masterBuffer,sizeof(masterBuffer));
int n = sock.receiveFrom(echo_server, masterBuffer, sizeof(masterBuffer));
