Updated Avoiding pitfalls (markdown)

Benoît Blanchon
2017-01-29 10:44:00 +01:00
parent 669c9fad34
commit b27c58219f

@@ -55,7 +55,7 @@ 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 is to declare it in a function whose unique role is to handle the JSON serialization.
See [FAQ: The first parsing succeeds, why does the next ones fail?](https://bblanchon.github.io/ArduinoJson/faq/the-first-parsing-succeeds-why-does-the-next-ones-fail)
See [FAQ: The first parsing succeeds, why does the next ones fail?](https://bblanchon.github.io/ArduinoJson/faq/the-first-parsing-succeeds-why-do-the-next-ones-fail)
#### 5. Keep the JSON string in memory long enough