- Code: Select all
void printData(char* data, int len) {
// Print the data returned by the server
// Note that the data is not null-terminated, may be broken up into smaller packets, and
// includes the HTTP header.
while (len-- > 0) {
Serial.print(*(data++));
}
}
So how would I take 'data' which I believe is a character pointer, and convert it to something actually easily usable, like the String class here? http://arduino.cc/en/Reference/StringObject
Thanks!