What to use instead of RawSerial.attach() in mbed-os 6

Hello,

I’m trying to receive and send characters with UART defensively with interrupts using mbed.h on Mbed’s online compiler. The board is an Nucleo F446 board containing an STM32F446RE processor.

Previously, functions to initiate on interrupts could be linked to pins by RawSerial(PIN,PIN).attach()

RawSerial has been replaced with UnbufferedSerial which doesn’t have an attach() member function.

How can one attach() using Mbed-os 6.15?

Thanks heaps,

Phil

Hello Phil,

in the documentation of UnbufferedSerial you can found description of SerailBase::attach method and also the example shows how to use it.

BR, Jan