I have a Esp8266 server responding to a json request from a client.
I'm using server.send(200, "json", html)
Html is a string I use to build the response, but there are some array's that are very long, so it uses loads of memory.
I tried to use server.sendContent() to do the job stepping through the arrays in a for loop, server.sendContent doesnt send any header, just raw data, I'm having trouble finding out what kind of header to send for json so I can build my own response.
I tried to get the debugger (F12) that comes with firefox to show me, of course it doesnt, just starts from <html>.
I'm using server.send(200, "json", html)
Html is a string I use to build the response, but there are some array's that are very long, so it uses loads of memory.
I tried to use server.sendContent() to do the job stepping through the arrays in a for loop, server.sendContent doesnt send any header, just raw data, I'm having trouble finding out what kind of header to send for json so I can build my own response.
I tried to get the debugger (F12) that comes with firefox to show me, of course it doesnt, just starts from <html>.