demo versie 16/05

Dependencies:   EthernetInterface mbed-rto mbed

Fork of ProjectVLC by Klaas Govaerts

main.cpp

Committer:
KlaasGovaerts
Date:
2018-04-25
Revision:
28:bf62c46acb3e
Parent:
21:fe6a58e84929
Child:
30:996da48a265c

File content as of revision 28:bf62c46acb3e:

#include "mbed.h"
#include "rtos.h"
#include "Interpreter.h"
#include "TCPlistener.h"
    
int main (void){
        Queue<int,8> *queue=new Queue<int,8>();
        
        Interpreter interpreter(queue);
        TCPlistener listener;
        char command[512];
        
        while(true){
            listener.receiveSegment(command,sizeof(command));
            interpreter.executeCommand(command);
        }
}