Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

main.cpp

Committer:
nixnax
Date:
2017-08-29
Revision:
144:01d98cf7738e
Parent:
142:54d1543e23e5
Child:
147:0f40005cbc5f

File content as of revision 144:01d98cf7738e:

/** @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( connected() ) {
            waitForPppFrame(); // process PPP frames until we receive a disconnect command
        }
    } 
}