Allocating.PSRAM memory to JSON
Posted: Mon Jul 01, 2019 5:33 pm
I have a project using the WROVER module that will use large JSON objects. I would like to allocate one large block of memory to hold my JSON objects and strings. I have run across several topics and discussions on how to allocate memory for JSON. These are: StaticJsonBuffer;
StaticJsonDocument<256>;
DynamicJsonDocument doc(2048);
But I could not find anything specific about JSON with PSRAM. StaticJsonBuffer looked like it was the most flexible but I could not see anything public that I could assign a pointer to.
Is this because I should not use PSRAM for JSON?
If there is no reason not to use PSRAM, can someone give an example of how to do this, or point me to a link that might help me understand what to do?
StaticJsonDocument<256>;
DynamicJsonDocument doc(2048);
But I could not find anything specific about JSON with PSRAM. StaticJsonBuffer looked like it was the most flexible but I could not see anything public that I could assign a pointer to.
Is this because I should not use PSRAM for JSON?
If there is no reason not to use PSRAM, can someone give an example of how to do this, or point me to a link that might help me understand what to do?