project met UDP IP
Dependencies: EthernetInterface LM75B mbed-rtos mbed
Fork of communication by
master.h@4:4848f847d2ce, 2018-03-23 (annotated)
- Committer:
- JelleRaes
- Date:
- Fri Mar 23 13:43:04 2018 +0000
- Revision:
- 4:4848f847d2ce
- Parent:
- 3:9c600fb19ed2
projectlab
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JelleRaes | 0:52e944ca21ea | 1 | #ifndef MASTER_H |
JelleRaes | 0:52e944ca21ea | 2 | #define MASTER_H |
JelleRaes | 3:9c600fb19ed2 | 3 | class master{ |
JelleRaes | 3:9c600fb19ed2 | 4 | public: |
JelleRaes | 4:4848f847d2ce | 5 | master();//Empty constuctor |
JelleRaes | 4:4848f847d2ce | 6 | |
JelleRaes | 4:4848f847d2ce | 7 | /*starts up the loop for the master which opens de connection after a |
JelleRaes | 4:4848f847d2ce | 8 | *a request has been send and closes the connection again after an |
JelleRaes | 4:4848f847d2ce | 9 | *acknowledge has been received |
JelleRaes | 4:4848f847d2ce | 10 | */ |
JelleRaes | 3:9c600fb19ed2 | 11 | void startMaster(const char* ip); |
JelleRaes | 3:9c600fb19ed2 | 12 | |
JelleRaes | 3:9c600fb19ed2 | 13 | private: |
JelleRaes | 4:4848f847d2ce | 14 | /*Function that allows the user to type a command after which it is placed |
JelleRaes | 4:4848f847d2ce | 15 | *inside a char array. |
JelleRaes | 4:4848f847d2ce | 16 | */ |
JelleRaes | 3:9c600fb19ed2 | 17 | void typeRequest(char* buffer); |
JelleRaes | 4:4848f847d2ce | 18 | |
JelleRaes | 4:4848f847d2ce | 19 | /*Function that allows the user to type the desired target IP |
JelleRaes | 4:4848f847d2ce | 20 | */ |
JelleRaes | 3:9c600fb19ed2 | 21 | void typeIp(char* buffer); |
JelleRaes | 3:9c600fb19ed2 | 22 | }; |
JelleRaes | 0:52e944ca21ea | 23 | #endif |