Console Output in Terminal or IDE

I am new to hardware coding and coding as well (almost :smiley: )

I cant get it to work to print out to the Terminal. The Examples I can find here dont work for me :frowning:
I can not import “Serial”
Can someone guide me to get this working? Iam using Studio code with


just start with visit Platformio and Mbed documentation.
The Serial API can be used only in MbedOS < 6 for MbedOS =>6 there are new APIs BufferedSerial and UnbufferedSerial. With these new APIs you also can not use printf function. But you can still use it for a debugging.

if you have any further questions related to Mbed, do not be hesitate and ask.

BR, Jan