RealtimeCompLab2

Dependencies:   mbed

Fork of PPP-Blinky by Nicolas Nackel

main.cpp

Committer:
nixnax
Date:
2017-09-01
Revision:
153:7993def8663f
Parent:
150:3366bf3d294e
Child:
174:e5a3f16421a5

File content as of revision 153:7993def8663f:

/** @file ppp-blinky.cpp */
#include "mbed.h"
#include "ppp-blinky.h"

// PPP-Blinky - "The Most Basic Internet Of A 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
        }
    } 
}