Closed DuncanAmos closed 6 years ago
This should work: display.setText(outString.c_str());
That did not work for me. adding this to convert the string to char worked in my case:
char message[payload.length()]; payload.toCharArray(message, payload.length());
Maybe this will help someone.
Works great but I need to use a variable for the text to be displayed (it will depend on various parameters and will be a concatenated string).
It won't seem to allow me to do it. As a test, I'm using this within the loop: String countString = String(showCount); String outString = ("Pass through loop number " + countString); display.setText(outString);
It throws this error: exit status 1 no matching function for call to 'FC16::setText(String&)'