Jelle Raes / Mbed 2 deprecated Projec_1_projectlab

Dependencies:   EthernetInterface LM75B mbed-rtos mbed

Fork of communication by Jelle Raes

Revision:
3:9c600fb19ed2
Parent:
1:550192b4ae8e
Child:
4:4848f847d2ce
--- a/slave.h	Tue Mar 13 12:15:05 2018 +0000
+++ b/slave.h	Wed Mar 14 14:39:08 2018 +0000
@@ -1,14 +1,17 @@
 #ifndef SLAVE_H
 #define SLAVE_H
-
-float getTemp();
-float getPot();
-
-void putLCD(char*);
-void putLED(char*);
-void putLED(float, float, float);
-void putBuzzer(int,int);
-
-void startSlave(const char *ip);
-char *getResponse(const char *request,const char *ip);
+class slave{
+    public:
+    slave();
+    void startSlave(const char *ip);   
+    
+    private:
+    float getTemp();
+    float getPot();
+    void putLCD(char*);
+    void putLED(char*);
+    void putLED(float, float, float);
+    void putBuzzer(int,int);
+    char *getResponse(const char *request,const char *ip);
+}; 
 #endif
\ No newline at end of file