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: slave.h
- 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
