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.h
- Revision:
- 4:4848f847d2ce
- Parent:
- 3:9c600fb19ed2
--- a/master.h Wed Mar 14 14:39:08 2018 +0000
+++ b/master.h Fri Mar 23 13:43:04 2018 +0000
@@ -2,11 +2,22 @@
#define MASTER_H
class master{
public:
- master();
+ master();//Empty constuctor
+
+ /*starts up the loop for the master which opens de connection after a
+ *a request has been send and closes the connection again after an
+ *acknowledge has been received
+ */
void startMaster(const char* ip);
private:
+ /*Function that allows the user to type a command after which it is placed
+ *inside a char array.
+ */
void typeRequest(char* buffer);
+
+ /*Function that allows the user to type the desired target IP
+ */
void typeIp(char* buffer);
};
#endif
\ No newline at end of file
