BufferedSerial and UnbufferedSerial using different methods for the same thing

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?

1 Like

Hi Heath,

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.

Regards,
Anna

I’ve raised https://github.com/ARMmbed/mbed-os/issues/13407 to have this looked at.