![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
First version
Dependencies: mbed EthernetInterface mbed-rto
Diff: main.cpp
- Revision:
- 5:9903a0906a72
- Parent:
- 4:0413d42377d1
- Child:
- 12:f3db7045e220
- Child:
- 25:1dc7dfe499fd
--- a/main.cpp Wed Mar 28 13:28:14 2018 +0000 +++ b/main.cpp Wed Mar 28 14:19:06 2018 +0000 @@ -1,18 +1,30 @@ #include "mbed.h" #include "rtos.h" #include "Receiver.h" +#include "TCPlistener.h" int main (void){ + + UDPSocket server; + + TCPlistener listener; + char command[512]; + listener.receivePacket(command,sizeof(command)); + + #if 0 Mutex* lock=new Mutex(); int LED[12]; for(int i=0;i<12;i++){ LED[i]=-1; } + Receiver receiver(LED,lock); + reciever.init(); + #endif /* Thread receiverThread; - Receiver receiver(LED,lock); + receiverThread.start(receiver.run); */