String Bigun = "Thats what I'm working on.\n"
"There are 5 measurements, so I can send each one as a chunk in the json reply.\n"
"Only I'm having trouble with that, the code I'm using is:\n"
"http_err_t send_reply_chunk(*p, buffer sizeof(buffer)\n"
"Only its not doing as expected, its sending the buffer with a load of junk ahead of it, I dont think the *p pointer is pointing to the right place.\n"
"Finding data on the esp32 server module isnt that easy.\n"
"Red to black, black to red and blue to bits.\n";
void setup() {
Serial.begin(115200);
Serial.println();
}
#define len 50
void loop() {
int to=len,from=0;
while(to<Bigun.length()){
Serial.print(Bigun.substring(from,to));
from=to;
to+=len;
}
Serial.print(Bigun.substring(from));
while(1){
delay(1);
}
}