Eliminated unessecary logic when defining chunk size

Dependencies:   CyaSSL

Dependents:   ECE_4180_Lab_4 IoT_Security_WIFI ESP8266_HTTP_HelloWorld ESP8266_ws_hw ... more

Fork of HTTPClient-SSL by Doug Anson

Revision:
40:c0a52a6bb50f
Parent:
39:e3c8f7d2d037
Child:
41:f1f9b72a164b
--- a/HTTPClient.cpp	Thu Sep 18 16:46:08 2014 +0000
+++ b/HTTPClient.cpp	Fri Sep 19 16:59:39 2014 +0000
@@ -59,8 +59,25 @@
 #include "TCPSocketConnection.h"
 
 static  TCPSocketConnection m_sock;
-#define CHUNK_SIZE    512
-#define SEND_BUF_SIZE 1024
+
+// ************ should be a better way to adjust for platform limitations
+
+#if defined (TARGET_K64F)
+    // can use larger buffers since we have more memory
+    #define CHUNK_SIZE    768
+    #define SEND_BUF_SIZE 1280
+#elif || defined (TARGET_C027)
+    // can use larger buffers since we have more memory
+    #define CHUNK_SIZE    512
+    #define SEND_BUF_SIZE 1024
+#else
+    // default smaller buffers
+    #define CHUNK_SIZE    256
+    #define SEND_BUF_SIZE 768
+#endif
+
+// ************ should be a better way to adjust for platform limitations
+
 static char send_buf[SEND_BUF_SIZE] ;
 static char *send_buf_p = NULL;