Is there anyway to send manually typing messages to arduino through serial port in platformio?

I used this to get it to work in a terminal session outside of VSCodium:

pio device monitor --eol=CRLF --echo --filter send_on_enter

I needed the --echo as I suspect that with the filter to send_on_enter, it no longer echoes. Anyway, I now know that that works on the command line, adding the folloiwng to my platformio.ini file also now works:

monitor_flags = 
    --echo 
    --eol 
    CRLF

As per the docs at Redirecting..., the flags and their options must each be supplied on a new line. What it doesn’t say, and it will not work, unless you start each line with a tab. (Or spaces?) I get the impression that this needs to be in Python format - where indents are required.

The above works in VSCodium (1.34.0) on Linux Mint 19.3 64 bit.

HTH

Cheers,
Norm.

1 Like