platform: serial: add bytesAvailable() function

This commit is contained in:
Jacob Dahl
2025-07-29 09:07:03 -08:00
committed by Jacob Dahl
parent 61e741e7d0
commit b5bf28c204
8 changed files with 40 additions and 0 deletions
+5
View File
@@ -69,6 +69,11 @@ bool Serial::close()
return _impl.close();
}
ssize_t Serial::bytesAvailable()
{
return _impl.bytesAvailable();
}
ssize_t Serial::read(uint8_t *buffer, size_t buffer_size)
{
return _impl.read(buffer, buffer_size);