Hi, my sketch in not uploading into esp8266 board and it's showing " Hardresetting via RTS pin"

Here is the code, I used and what should I do next?

#include <LiquidCrystal_I2C.h>
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <DHT.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);

char auth[] = "kREKxA4WD3Km9CNeduvehx0N2dXh5tR9"; //Enter the Auth code which was send by Blink
char ssid[] = "Rivanth"; //Enter your WIFI Name
char pass[] = "12345678"; //Enter your WIFI Password

DHT dht(D3, DHT11); //(sensor pin,sensor type)
BlynkTimer timer;

void weather() {
float h = dht.readHumidity();
float t = dht.readTemperature();
int r = analogRead(A0);
bool l = digitalRead(D4);

r = map(r, 0, 1023, 100, 0);
if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}

Blynk.virtualWrite(V0, t); //V0 is for Temperature
Blynk.virtualWrite(V1, h); //V1 is for Humidity
Blynk.virtualWrite(V2, r); //V2 is for Rainfall

if (l == 0) {
WidgetLED led1(V3);
led1.on();
lcd.setCursor(9, 1);
lcd.print("L :");
lcd.print("High");
lcd.print(" ");
} else if (l == 1) {
WidgetLED led1(V3);
led1.off();
lcd.setCursor(9, 1);
lcd.print("L :");
lcd.print("Low");
lcd.print(" ");
}

lcd.setCursor(0, 0);
lcd.print("T :");
lcd.print(t);

lcd.setCursor(0, 1);
lcd.print("H :");
lcd.print(h);

lcd.setCursor(9, 0);
lcd.print("R :");
lcd.print(r);
lcd.print(" ");

}

void setup() {
Serial.begin(9600); // See the connection status in Serial Monitor
lcd.init();
lcd.backlight();
Blynk.begin(auth, ssid, pass);
dht.begin();
// Setup a function to be called every second
timer.setInterval(10L, weather);
}

void loop() {
Blynk.run(); // Initiates Blynk
timer.run(); // Initiates SimpleTimer
}

Post the FULL 'error'. Not just a part of it.

Please edit your post, select all code and click the </> button; next save your post. So we don't have to look at things like char auth[] bit it reflect what you actually have, char auth[].

Its only a guess, since you have not posted the full message, but you normally ge the "Hardresetting via RTS pin" when the program has uploaded.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.