![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
main.cpp@24:bf62c46acb3e, 2018-04-25 (annotated)
- Committer:
- KlaasGovaerts
- Date:
- Wed Apr 25 13:25:13 2018 +0000
- Revision:
- 24:bf62c46acb3e
- Parent:
- 20:fe6a58e84929
- Child:
- 29:996da48a265c
Verzenden via queues
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KlaasGovaerts | 0:98e4994363bf | 1 | #include "mbed.h" |
KlaasGovaerts | 20:fe6a58e84929 | 2 | #include "rtos.h" |
KlaasGovaerts | 18:5ee34e60a31d | 3 | #include "Interpreter.h" |
KlaasGovaerts | 5:9903a0906a72 | 4 | #include "TCPlistener.h" |
KlaasGovaerts | 2:1c9645acea2f | 5 | |
KlaasGovaerts | 2:1c9645acea2f | 6 | int main (void){ |
KlaasGovaerts | 24:bf62c46acb3e | 7 | Queue<int,8> *queue=new Queue<int,8>(); |
KlaasGovaerts | 24:bf62c46acb3e | 8 | |
KlaasGovaerts | 24:bf62c46acb3e | 9 | Interpreter interpreter(queue); |
KlaasGovaerts | 18:5ee34e60a31d | 10 | TCPlistener listener; |
KlaasGovaerts | 18:5ee34e60a31d | 11 | char command[512]; |
KlaasGovaerts | 3:0d013b7e4dea | 12 | |
KlaasGovaerts | 20:fe6a58e84929 | 13 | while(true){ |
KlaasGovaerts | 20:fe6a58e84929 | 14 | listener.receiveSegment(command,sizeof(command)); |
KlaasGovaerts | 20:fe6a58e84929 | 15 | interpreter.executeCommand(command); |
KlaasGovaerts | 20:fe6a58e84929 | 16 | } |
KlaasGovaerts | 3:0d013b7e4dea | 17 | } |