Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
35:98add15351f3
Parent:
30:ce3813c5a692
Child:
40:3f3af6cd8a01
--- a/strings.c	Sat Oct 21 20:13:50 2017 +0000
+++ b/strings.c	Fri Nov 03 13:20:36 2017 -0700
@@ -126,9 +126,9 @@
 {
     STRING* result;
     
-#ifdef ARDUINO_ARCH_ESP8266
-    size_t maxBufSize = 512;
-    char buf[512];
+#ifdef STRINGS_C_SPRINTF_BUFFER_SIZE
+    size_t maxBufSize = STRINGS_C_SPRINTF_BUFFER_SIZE;
+    char buf[STRINGS_C_SPRINTF_BUFFER_SIZE];
 #else
     size_t maxBufSize = 0;
     char* buf = NULL;
@@ -517,9 +517,9 @@
 {
     int result;
     
-#ifdef ARDUINO_ARCH_ESP8266
-    size_t maxBufSize = 512;
-    char buf[512];
+#ifdef STRINGS_C_SPRINTF_BUFFER_SIZE
+    size_t maxBufSize = STRINGS_C_SPRINTF_BUFFER_SIZE;
+    char buf[STRINGS_C_SPRINTF_BUFFER_SIZE];
 #else
     size_t maxBufSize = 0;
     char* buf = NULL;