Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

main.cpp

Committer:
nixnax
Date:
2017-09-11
Revision:
179:ba2b2ddd0da5
Parent:
177:dab9e685af53
Child:
187:e2cea223dd85

File content as of revision 179:ba2b2ddd0da5:

/** @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
        }
    } 
}