I have more or less managed to ween myself off the Arduino ide and on to Platform io in VSCode except for using the terminal!
There are 2 things that I have not been able to alter/get around.
The first is that when I send a message using the terminal it seems to send it as I type rather than wait until I hit RETURN. This means that the ESP gets only part of the command. This is so annoying that I simply open an Arduino IDE and use its terminal.
The second problem is that if I use the terminal in Platform Io at all, even to simply recieve data I cannot seem to be able to close it properly. This means that when I try to upload a new version of the program to the ESP32, Platform io complains it cannot find the COMM port. The only solution I have found is to unplug the cable and plug it back in again.
Has anybody else come across these problems and found a solution?
Hi Alan.
I don’t use the Terminal much to send commands to the ESP32.
There is a Recicle Bin icon to delete open Terminals on VS Code. Next to that icon, there is a drop down menu, where you can choose which terminal you want to close.
If there is a connection opened with the ESP32 using the Terminal, you won’t be able to upload the code because the port is already being used. You need to close that connection.
If after that, it cannot find the port, you can set the port on your platformio.ini file like this: https://docs.platformio.org/en/latest/projectconf/section_env_upload.html#upload-port
I hope this helps.
Regards,
Sara