Nicolas Nackel
/
PPP-Blinky
Small Internet Protocol Stack using a standard serial port.
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 /** @file ppp-blinky.cpp */ 00002 #include "mbed.h" 00003 #include "ppp-blinky.h" 00004 00005 // PPP-Blinky - "The Most Basic Internet Thing" 00006 00007 int main() 00008 { 00009 initializePpp(); // initialize the serial port(s) and PPP structure 00010 while(1) { 00011 waitForPcConnectString(); // wait for PC to send a connect message 00012 00013 // main loop 00014 while( connectedPpp() ) { 00015 waitForPppFrame(); // process PPP frames until we receive a disconnect command 00016 } 00017 00018 } 00019 }
Generated on Thu Jul 14 2022 20:53:47 by 1.7.2