I’m uploading some code to make a web server on a NodeMCU, and it compiles properly, with the upload task working as well.
However, when I run the “Upload and Monitor” task, this is the output:
REMAINING IMGS IN COMMENTS
The dots never end, and it keeps on going. Also, there are these weird symbols at the start of the monitor connecting output.
platformio.ini:
[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
monitor_speed=115200
;monitor_dtr=0
;monitor_rts=0
lib_deps = ottowinter/ESPAsyncWebServer-esphome@^3.2.2
I also tried uncommenting mointor_dtr and monitor_rts, and this is the output from Monitor:
IMG IN COMMENTS
I’ve made sure that monitor_speed in platformio.ini is the same in my code and in the ini file, and I’ve also tried changing the speed to 9600.
Here is the first image for “However, when I run the “Upload and Monitor” task, this is the output:”
And the image for “I also tried uncommenting mointor_dtr and monitor_rts, and this is the output from Monitor:”
The upload is correct.
The output looks like when the NodeMCU tries to establish a WiFi connection (but fails due to incorrect WiFi credentials). But we would need to see the code.
See if your setup()
function contains something like this (or something similar):
WiFi.begin(WIFI_SSID, WIFI_PASS);
while (WiFi.status() != WL_CONNECTED) {
Serial.print(“.”);
delay(500);
}
Check whether the parameters for WiFi.begin() have the correct credentials for your WiFi network.
Ahhh that makes sense! I didn’t set the WiFi password because I expected it to print out an error, so I’ll set it and test it out later.