Skip to content

Commit

Permalink
ESP32 JSON buffer size fixed for RuuviTag_RAWV2 (#1906)
Browse files Browse the repository at this point in the history
816 bytes is just enough for parsing RuuviTag_RAWV2
json properties.

Resolves #1905

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
  • Loading branch information
ssalonen authored Mar 4, 2024
1 parent cf81631 commit 5432016
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/User_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ Adafruit_NeoPixel leds2(ANEOPIX_IND_NUM_LEDS, ANEOPIX_IND_DATA_GPIO2, ANEOPIX_IN
#endif

#if defined(ESP32)
# define JSON_MSG_BUFFER 768
# define JSON_MSG_BUFFER 816 // adjusted to minimum size covering largest Theengs device JSON properties (RuuviTag_RAWv2)
# define SIGNAL_SIZE_UL_ULL uint64_t
# define STRTO_UL_ULL strtoull
#elif defined(ESP8266)
Expand Down

0 comments on commit 5432016

Please sign in to comment.