I am porting some arduino code over to the photon and ran into an issue where the serial method availableForWrite is not available. I am wondering if there are any plans to add serial availableForWrite functionality to the firmware and if not, does anyone have ideas on how to workaround this using the currently available firmware?
What would be a use case for this function?
Since sending TX is not blocking anyhow. But a pull request for a fn that returns the difference between head and tail of the TX buffer might be pulled.