I’m moving from Arduino IDE to PlatformIO. I’m a bit confused with sending text to my 8266 sketch. I’m used to the Ard IDE of having an input field but there doesn’t seem to be on on PlatformIO that I’ve found. I’ve added
monitor_eol = LF
monitor_echo = yes
monitor_filters = send_on_enter
to Platformio.ini to get it working this far but I can’t type more that few characters before the output runs past my typing. Surely there must be a way to construct a input message with a field as we do in the Ard IDE. TIA
Unfortunately this is not possible. But if you want to have something similar to the ArduinoIDE’s serial monitor you can install the VS Code plugin “Serial Monitor
”.
Please note that this will block the COM port. You must therefore disconnect the serial monitor manually before uploading a new sketch and reconnect it after uploading the sketch.
Furthermore, the settings in platformio.ini (monitor_speed
/ monitor_port
etc…) have no effect on the Serial Monitor Plugin.
OK, thanks. I’ll stop looking for it then.
What I’m using is the Arduino IDE for serial communications with my PlatformIO projects and it seems to work fine.
Note that even though the output might be printed while you’re typing stuff in, if you press the enter key in your configuration, it will still only send what you’ve typed in, so you should get the same input/output behavior as in the Arduino IDE.