RealtimeCompLab2
Dependencies: mbed
Fork of PPP-Blinky by
main.cpp
- Committer:
- nixnax
- Date:
- 2017-10-06
- Revision:
- 189:9fc4ae041974
- Parent:
- 187:e2cea223dd85
- Child:
- 193:8d3c9e94a4fb
File content as of revision 189:9fc4ae041974:
/** @file ppp-blinky.cpp */ #include "mbed.h" #include "ppp-blinky.h" // PPP-Blinky - "The Most Basic Internet Thing" int main() { initializePpp(); // initialize the serial port(s) and structures while(1) { waitForPcConnectString(); // wait for PC to send a connect message while( connectedPpp() ) { waitForPppFrame(); // process PPP frames until we receive a disconnect command } } }