How to change default baud rate of serial monitor in VSCode with PlatformIO?

Defozo picture Defozo · Nov 11, 2017 · Viewed 16.8k times · Source

I have VSCode and PlatformIO plugin. When I start serial monitor it always starts with 9600 baud rate. I'd like to change that, so it always starts with 115200.

I can change the baud rate of already running serial monitor by pressing CTRL+T, b, 115200, enter but I don't want to do this every time I start my serial monitor.

I can't find that setting anywhere. I tried adding a line speed = 115200 to platformio.ini but that didn't change anything.

Answer

a.mark.pierce picture a.mark.pierce · Jan 1, 2018

You need to add the option monitor_baud = 115200 for your target in platformio.ini