Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

Revision:
122:963abcbff21e
Parent:
121:705679672685
Child:
123:fc64fc6caae0
diff -r 705679672685 -r 963abcbff21e main.cpp
--- a/main.cpp	Tue Aug 08 19:57:06 2017 +0000
+++ b/main.cpp	Tue Aug 08 20:02:35 2017 +0000
@@ -121,8 +121,9 @@
     struct {
         int len; // number of bytes in buffer
         int crc; // PPP CRC (frame check)
-#define TCP_max_size 3000
-        char buf[TCP_max_size]; // send and receive buffer large enough for unstuffed (decoded) hdlc frames
+#define PPP_max_size 2500
+        // we are assuming 1000 bytes more MTU size of 1500- due to the PPP encoding of special bytes
+        char buf[PPP_max_size]; // send and receive buffer large enough for raw, encoded PPP/HDLC frames
     } pkt; // ppp buffer objects
     struct {
         int frameStartIndex; // frame start marker