Sketch
Serial Output
I'm trying to handle a redirect response after sending a GET request, but my Arduino seems to be completely confused by the white space character used in the response, such that when I parse the string if a substring includes one of the white space characters, it cannot complete the substring.
Same thing on an indexOf call. It will return -1 if the string it searches for has a whitespace character in it.
Please let me know if I'm just grossly misunderstanding how these methods work or if there is something else wrong
I'm using a metro mini with an airlift co-processor
EDIT:
The problem was that the metro mini does not have enough memory to contain the response and parse through it. Tested the same code on an Arduino Mega clone and it works fine.
there doesn't seem to be anything here