![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
Receiver.h@35:efdbfccf2678, 2018-05-02 (annotated)
- Committer:
- KlaasGovaerts
- Date:
- Wed May 02 06:53:40 2018 +0000
- Revision:
- 35:efdbfccf2678
- Parent:
- 30:915f6cb7ffa5
Added documentation
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KlaasGovaerts | 24:bf62c46acb3e | 1 | #include "rtos.h" |
KlaasGovaerts | 29:996da48a265c | 2 | #include "Interpreter.h" |
KlaasGovaerts | 29:996da48a265c | 3 | #include "TCPlistener.h" |
KlaasGovaerts | 24:bf62c46acb3e | 4 | |
KlaasGovaerts | 24:bf62c46acb3e | 5 | #ifndef RECEIVER_H |
KlaasGovaerts | 24:bf62c46acb3e | 6 | #define RECEIVER_H |
KlaasGovaerts | 35:efdbfccf2678 | 7 | /** |
KlaasGovaerts | 35:efdbfccf2678 | 8 | * A class used to receive commands via TCP and execute them. |
KlaasGovaerts | 35:efdbfccf2678 | 9 | */ |
KlaasGovaerts | 24:bf62c46acb3e | 10 | class Receiver{ |
KlaasGovaerts | 24:bf62c46acb3e | 11 | private: |
KlaasGovaerts | 30:915f6cb7ffa5 | 12 | Queue<int,8>* queue; |
KlaasGovaerts | 29:996da48a265c | 13 | Interpreter interpreter; |
KlaasGovaerts | 29:996da48a265c | 14 | TCPlistener listener; |
KlaasGovaerts | 29:996da48a265c | 15 | char command[512]; |
KlaasGovaerts | 24:bf62c46acb3e | 16 | public: |
KlaasGovaerts | 30:915f6cb7ffa5 | 17 | Receiver(Queue<int,8>* queue); |
KlaasGovaerts | 29:996da48a265c | 18 | void start(); |
KlaasGovaerts | 24:bf62c46acb3e | 19 | }; |
KlaasGovaerts | 24:bf62c46acb3e | 20 | #endif |