demo versie 16/05

Dependencies:   EthernetInterface mbed-rto mbed

Fork of ProjectVLC by Klaas Govaerts

Receiver.cpp

Committer:
KlaasGovaerts
Date:
2018-05-02
Revision:
43:b69c7baa5d31
Parent:
31:915f6cb7ffa5
Child:
62:237e32fd3555

File content as of revision 43:b69c7baa5d31:

#include "Receiver.h"

Receiver::Receiver(Queue<int,8>* queue):interpreter(queue){
    printf("Receiver created.\r\n");
}

void Receiver::start(){
    printf("Receiver::start executed.\r\n");
    while(true){
            listener.receiveSegment(command,sizeof(command));
            interpreter.executeCommand(command);
    }
}