Nicolas Nackel / Mbed 2 deprecated PPP-Blinky

Dependencies:   mbed

Committer:
nixnax
Date:
Sun Oct 18 17:30:29 2020 +0000
Revision:
275:bb2d582c20d6
Parent:
266:47eea4b910ad
Formatting

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nixnax 142:54d1543e23e5 1 /** @file ppp-blinky.cpp */
nixnax 81:9ede60e9a2c8 2 #include "mbed.h"
nixnax 142:54d1543e23e5 3 #include "ppp-blinky.h"
nixnax 9:0992486d4a30 4
nixnax 179:ba2b2ddd0da5 5 // PPP-Blinky - "The Most Basic Internet Thing"
nixnax 81:9ede60e9a2c8 6
nixnax 0:2cf4880c312a 7 int main()
nixnax 0:2cf4880c312a 8 {
nixnax 266:47eea4b910ad 9 initializePpp(); // initialize the serial port(s) and PPP structure
nixnax 189:9fc4ae041974 10 while(1) {
nixnax 153:7993def8663f 11 waitForPcConnectString(); // wait for PC to send a connect message
nixnax 266:47eea4b910ad 12
nixnax 266:47eea4b910ad 13 // main loop
nixnax 150:3366bf3d294e 14 while( connectedPpp() ) {
nixnax 142:54d1543e23e5 15 waitForPppFrame(); // process PPP frames until we receive a disconnect command
nixnax 81:9ede60e9a2c8 16 }
nixnax 266:47eea4b910ad 17
nixnax 142:54d1543e23e5 18 }
nixnax 105:45001195b325 19 }