Why does the following code return this error? How can I make this work?
Error: exit status 1 invalid conversion from 'const char*' to 'char' [-fpermissive]
#include "FS.h"
#include "SD.h"
#include "SPI.h"
void setup() {
Serial.begin(115200);
if (!SD.begin(33)) {
Serial.println("Card Mount Failed");
} else {
Serial.println("Card Mount Succeeded");
}
File offline = SD.open("/offlineLog.txt", FILE_READ);
while (offline.available()) {
String line = offline.readStringUntil("\n");
Serial.println(line);
}
}
The docs say that stream.readStringUntil returns a string...