RealtimeCompLab2
Dependencies: mbed
Fork of PPP-Blinky by
Diff: main.cpp
- Revision:
- 193:8d3c9e94a4fb
- Parent:
- 189:9fc4ae041974
--- a/main.cpp Sat Nov 11 10:32:20 2017 +0000 +++ b/main.cpp Mon Nov 20 22:03:28 2017 +0000 @@ -6,11 +6,16 @@ int main() { +// int i =1; initializePpp(); // initialize the serial port(s) and structures +// l_on(); while(1) { - waitForPcConnectString(); // wait for PC to send a connect message + waitForPcConnectString(); // wait for PC to send a connect message +// l_off(); while( connectedPpp() ) { + waitForPppFrame(); // process PPP frames until we receive a disconnect command } + } -} \ No newline at end of file +}