'class Print' has no member named 'availableForWrite'
^^^ This is the error we get when trying to use 'Print::availableForWrite' from Arduino Due API headers.
By doing a search on the Net I found a couple of suggestions that this is a matter of historical API version. E.g. older version of the API did not have 'availableForWrite' in 'Print' and the newer one does. That's perfectly fine. However, if that is the case, then I'd like to know which globally defined macro does Arduino API provide to distinguish between API versions. I.e. I want to know how to do something like
#if ARDUINO_API_MAJOR_VERSION > 5
What is the macro name for that?
If, on the other hand, this is not a API versioning issue but simply a botched API implementation for Arduino Due, then I want it fixed immediately. In that case my question is different: where do I submit an urgent fix request? (I can't wait for a general release of the fix, so I'll want Arduino support to make an immediate fix just for me and then, at some later time, release it to the general public).
But first and foremost, again: what is root cause here? An older historical API? Or a poor quality implementation?