Why does the new Mbed OS 6.x BufferedSerial use the set_baud and set_format methods when UnbufferedSerial uses the baud and format methods? Since they do the same things with the same arguments, shouldn’t they be named the same?
thanks for the question. It does seem to be that BufferedSerial uses it’s own methods whereas UnbufferedSerial is picking them up from SerialBase. It does indeed appear inconsistent. I will raise an issue on GitHub to have this looked at.
I’ve raised https://github.com/ARMmbed/mbed-os/issues/13407 to have this looked at.