Allocating.PSRAM memory to JSON

catotonic
Posts: 36
Joined: Sun Jul 16, 2017 6:55 pm
Location: Houston, TX
Contact:

Allocating.PSRAM memory to JSON

Postby catotonic » 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?

Who is online

Users browsing this forum: gfvalvo and 60 guests