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:
- 3:9c600fb19ed2
- Parent:
- 2:067142778937
diff -r 067142778937 -r 9c600fb19ed2 master.cpp
--- a/master.cpp Tue Mar 13 12:15:05 2018 +0000
+++ b/master.cpp Wed Mar 14 14:39:08 2018 +0000
@@ -5,7 +5,11 @@
Serial masterpc(USBTX, USBRX);
-void startMaster(const char* ip){
+master::master(){
+
+}
+
+void master::startMaster(const char* ip){
EthernetInterface eth;
eth.init(ip, "255.255.255.0", "192.168.0.1");
eth.connect();
@@ -35,7 +39,7 @@
}
}
-void typeRequest(char* buffer){
+void master::typeRequest(char* buffer){
masterpc.printf("type for request:\n\r");
for(int i = 0;i<512;i++){
char key = masterpc.getc();
@@ -50,7 +54,7 @@
}
}
-void typeIp(char* buffer){
+void master::typeIp(char* buffer){
masterpc.printf("\n\rinsert ip address to send to:\n\r ");
for(int i = 0;i<14;i++){
char key = masterpc.getc();
