Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

main.cpp

Committer:
nixnax
Date:
2017-08-30
Revision:
150:3366bf3d294e
Parent:
147:0f40005cbc5f
Child:
153:7993def8663f

File content as of revision 150:3366bf3d294e:

/** @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) {
        scanForConnectString(); // wait for PC to send a connect message
        while( connectedPpp() ) {
            waitForPppFrame(); // process PPP frames until we receive a disconnect command
        }
    } 
}