Join GitHub today
Added readBytes(max) to serial library #4321
This adds the requested feature (issue #4167) to allow reading a specific number of bytes from the serial library. It follows the exact same logic as the readBytes(max) function which has been implemented for the network library (see PR #4320). I have not been able to test it beyond ensuring that it compiles hence the separate pull request.