Updated Avoiding pitfalls (markdown)

Benoît Blanchon
2016-02-19 13:43:34 +01:00
parent 3415935b5f
commit 4e632ead74

@@ -53,6 +53,8 @@ For this reason, **you should not use a global variable** for your `JsonBuffer`.
The best practice is to **declare it in a local scope**, so that it's discarded as soon as possible. My advice it to declare it in a function which unique role is to handle the JSON serialization.
See [FAQ: The first parsing succeeds, why does the next ones fail?](https://github.com/bblanchon/ArduinoJson/wiki/FAQ#the-first-parsing-succeeds-why-does-the-next-ones-fail)
#### 5. Keep the JSON string in memory long enough
The library never make memory duplication.