![]() VS Code behaves in the same way on a Windows and on a Linux computer, same goes for PuTTYĪdditionally : when I press backspace, the cursor in the terminal window doesn't go to the left in order to erase or overwrite what I entered previously - but that's less important at this point in time. When I do the same thing through a connection over PuTTY, I need to hit Enter twice before I get the “I received …” message (see the code below). ![]() Now here’s my problem : when I run the example shown below from within the terminal in VS Code on my computer, I can enter a text string, and send it to the ESP32 with a single newline (Enter key). The user doesn’t have the skills, and is not interested in acquiring them, to change program code, run the Arduino IDE or VS Code …, but he will be able to follow a written procedure and execute it correctly. The idea is that the parameters can be changed through a serial connection between a the ESP32 and a computer running PuTTY or similar software. Those parameters are stored in nvs (using the Preferences.h library) and read if and when required. IP addresses, or temperature cutoff point or whatever). The system will be installed at a location 80 km from where I live, so I want the user to be able to change certain configuration parameters without the need for me to be present (e.g. ![]() Temperature and humidity readings and relay status are then sent to a MQTT broker over WiFi. ![]() I am making a system where an ESP32 takes readings from a DHT22, and uses those readings in order to set or reset a relay connected to a heating system if below or above a previously set reference temperature. Yes, I have read the “Serial Input Basics”, and quite a few more web pages or Youtube clips. I need some help with serial communication between an ESP32 and a computer when using a terminal emulator. ![]()
0 Comments
Leave a Reply. |