First version
Dependencies: mbed EthernetInterface mbed-rto
Receiver.cpp@71:5e8ba1357442, 2018-05-15 (annotated)
- Committer:
- KlaasGovaerts
- Date:
- Tue May 15 16:53:09 2018 +0000
- Revision:
- 71:5e8ba1357442
- Parent:
- 59:237e32fd3555
Werkt niet2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KlaasGovaerts | 29:996da48a265c | 1 | #include "Receiver.h" |
KlaasGovaerts | 29:996da48a265c | 2 | |
KlaasGovaerts | 71:5e8ba1357442 | 3 | Receiver::Receiver(Queue<int,1>* queue):interpreter(queue){ |
KlaasGovaerts | 29:996da48a265c | 4 | } |
KlaasGovaerts | 29:996da48a265c | 5 | |
KlaasGovaerts | 29:996da48a265c | 6 | void Receiver::start(){ |
KlaasGovaerts | 29:996da48a265c | 7 | while(true){ |
KlaasGovaerts | 29:996da48a265c | 8 | listener.receiveSegment(command,sizeof(command)); |
KlaasGovaerts | 29:996da48a265c | 9 | interpreter.executeCommand(command); |
KlaasGovaerts | 29:996da48a265c | 10 | } |
KlaasGovaerts | 29:996da48a265c | 11 | } |