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: main.cpp
- Revision:
- 71:965619fedb3a
- Parent:
- 70:713f86229288
- Child:
- 72:ad3d12753acf
--- a/main.cpp Wed Jun 07 11:24:03 2017 +0000 +++ b/main.cpp Thu Jun 08 15:45:40 2017 +0000 @@ -854,7 +854,7 @@ void discardedFrame() { if (v0) { - debug("Dropping frame %02x %02x %02x %02x\n", ppp.pkt.buf[0],ppp.pkt.buf[1],ppp.pkt.buf[2],ppp.pkt.buf[3]); + debug("Frame is not IP, IPCP or LCP: %02x %02x %02x %02x\n", ppp.pkt.buf[0],ppp.pkt.buf[1],ppp.pkt.buf[2],ppp.pkt.buf[3]); } } @@ -914,11 +914,13 @@ void scanForConnectString() { if ( ppp.online==0 ) { - char * clientFound = strstr( (char *)rxbufppp, "CLIENTCLIENT" ); // look for PC string + // look for Windows Dialup Networking "Direct Connection Between Two Computers" expected connect string + char * clientFound = strstr( (char *)rxbufppp, "CLIENTCLIENT" ); if( clientFound ) { strcpy( clientFound, "FOUND!FOUND!" ); // overwrite so we don't find it again - pc.printf("CLIENTSERVER"); // respond to PC - ppp.online=1; // we can stop looking for the string + // respond with Windows Dialup networking expected "Direct Connection Between Two Computers" response string + pc.printf("CLIENTSERVER"); + ppp.online=1; // we are connected, so stop looking for the string debug("Connect string found\n"); } }