BufferedPrint.cpp:51:18: error: 'class Print' has no member named 'availableForWrite'
JAndrassy opened this issue · comments
some cores have the Arduino API older then 2017 and are missing Print::availbleForWrite function.
workaround:
int BufferedPrint::availableForWrite() {
// int a = target.availableForWrite();
// if (!a) // target doesn't report aFW or is really full
return size - pos; // then return space left in our buffer
// a = a - pos; // what will be left in target after our flush()
// return a < 0 ? 0 : a;
}
I ran into the same problem and used your work around. Thank you!
But I'm sure my libraries are updated. If not how can I check?
ps: I used ESP 32 WROOM with Ardruino IDE
I ran into the same problem and used your work around. Thank you!
But I'm sure my libraries are updated. If not how can I check?ps: I used ESP 32 WROOM with Ardruino IDE
Print::availableForWrite support was added to esp32 core GitHub repository only some days ago. it is not in a release