Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of webserverBlinky by
Diff: PPP-Blinky/ppp-blinky.cpp
- Revision:
- 153:7993def8663f
- Parent:
- 152:025c73b6c0a9
- Child:
- 154:18b2bd92f557
--- a/PPP-Blinky/ppp-blinky.cpp Fri Sep 01 15:25:04 2017 +0000 +++ b/PPP-Blinky/ppp-blinky.cpp Fri Sep 01 15:44:06 2017 +0000 @@ -1265,8 +1265,9 @@ } } -/// scan for a connect string ("CLIENT") from the host PC, if found, we set ppp.oline to true, which will the IP packet scanner -void scanForConnectString() +/// Wait for a dial-up modem connect command ("CLIENT") from the host PC, if found, we set ppp.online to true, which will start the IP packet scanner. +// Note: a 0x7E in the input stream (ppp start of frame character) will also set ppp.online to true - see checkPc(); +void waitForPcConnectString() { while(ppp.online == 0) { checkPc(); // gather received characters