![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
demo versie 16/05
Dependencies: EthernetInterface mbed-rto mbed
Fork of ProjectVLC by
Diff: Receiver.cpp
- Revision:
- 17:04fb7968592a
- Parent:
- 16:ffd311730575
--- a/Receiver.cpp Wed Apr 18 09:17:14 2018 +0000 +++ b/Receiver.cpp Wed Apr 18 09:27:34 2018 +0000 @@ -22,6 +22,18 @@ } } +void Receiver::executeAll(){ + char command[512]; + bool SegmentWaiting=true; + while(SegmentWaiting){ + SegmentWaiting=listener.receiveSegment(command,sizeof(command)); + if(SegmentWaiting==true){ + executeCommand(command); + } + } + +} + int Receiver::directionToNumber(char* direction){ if(strcmp(direction,"links")==0) return 0;