Skip to content

Async methods in RawSerial non accessible in UnbufferedSerial #15305

Open
@mcesar-rlacruz

Description

@mcesar-rlacruz

Description of defect

Some asynchronous methods in the now deprecated class RawSerial are no longer accessible from the new class UnbufferedSerial, as now it inherits privately from SerialBase, whereas previously RawSerial inherited publicly. Such methods are read() (the callback and char matching ones), write() (the callback one) and others.

Target(s) affected by this defect ?

Detected on DISCO_L072CZ_LRWAN1, but apparently universal.

Toolchain(s) (name and version) displaying this defect ?

ARMC6 6.16

What version of Mbed-os are you using (tag or sha) ?

6.16.0-rc1

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed Studio 1.4.4, mbed-cli, Keil uVision 5, apparently universal

How is this defect reproduced ?

UnbufferedSerial gps;
gps.SerialBase::read(...);
g_gps.set_break();

Will report that read() and set_break() are private members of SerialBase.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions