Jelle Raes / Mbed 2 deprecated Projec_1_projectlab

Dependencies:   EthernetInterface LM75B mbed-rtos mbed

Fork of communication by Jelle Raes

Revision:
3:9c600fb19ed2
Parent:
2:067142778937
--- 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();