Password request using wemos D1 R2 / ESP8266
----------------------------- Remove above -----------------------------
Basic Infos
wireless communication with wemos D1 R2 using ESP8266, its working perfectly when I connected with the usb cable
Hardware
Hardware: Wemos D1R2 Core Version: ESP8266
Description
Im getting a password request to access a wemos D1 R2 type board password to upload a new sketch¨ but I havent set any pass. I would aprreciated any help!!
Settings in IDE
Sketch
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
const char* ssid = "Mohican";
const char* password = "2a3bf31c";
void setup() {
Serial.begin(115200);
Serial.println("Booting");
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
Serial.println("Connection Failed! Rebooting...");
delay(5000);
ESP.restart();
}
// Port defaults to 8266
// ArduinoOTA.setPort(8266);
// Hostname defaults to esp8266-[ChipID]
ArduinoOTA.setHostname("WemoS");
// No authentication by default
// ArduinoOTA.setPassword((const char *)"123");
ArduinoOTA.onStart([]() {
Serial.println("Start");
});
ArduinoOTA.onEnd([]() {
Serial.println("\nEnd");
});
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
});
ArduinoOTA.onError([](ota_error_t error) {
Serial.printf("Error[%u]: ", error);
if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed");
else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed");
else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed");
else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
else if (error == OTA_END_ERROR) Serial.println("End Failed");
});
ArduinoOTA.begin();
Serial.println("Ready");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
pinMode(D5, OUTPUT); // initialize onboard LED as output
}
void loop() {
ArduinoOTA.handle();
digitalWrite(D5, HIGH);
delay(500);
digitalWrite(D5, LOW);
delay(500);
}
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
I also have this problem:
Windows 10 Arduino 1.6.8 ESP8266 2.3.0 Board NodeMCU 09 (ESP-12)
On 25 Jan 2017 22:13, "Shane Lester" [email protected] wrote:
Same using a nodemcu v3 windows 10 Arduino 1.6.11 ESP Package 2.3.0 Python 2.7
I have uncommented the line with the password ie // No authentication by default ArduinoOTA.setPassword((const char *)"123");
and tried 123 but still get uable to connect: wrong password?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/esp8266/Arduino/issues/2000#issuecomment-275234509, or mute the thread https://github.com/notifications/unsubscribe-auth/ALP8xYsq1pQx3RmzHVRBspHpDDmaTp_yks5rV7rzgaJpZM4IYnqO .
I found the issue Windows 10 blocked phyton so yo have to check your fw
On 26 Jan 2017 23:54, "duncan-a" [email protected] wrote:
I also have this problem:
Windows 10 Arduino 1.6.8 ESP8266 2.3.0 Board NodeMCU 09 (ESP-12)
On 25 Jan 2017 22:13, "Shane Lester" [email protected] wrote:
Same using a nodemcu v3 windows 10 Arduino 1.6.11 ESP Package 2.3.0 Python 2.7
I have uncommented the line with the password ie // No authentication by default ArduinoOTA.setPassword((const char *)"123");
and tried 123 but still get uable to connect: wrong password?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/esp8266/Arduino/issues/2000#issuecomment-275234509, or mute the thread <https://github.com/notifications/unsubscribe-auth/ ALP8xYsq1pQx3RmzHVRBspHpDDmaTp_yks5rV7rzgaJpZM4IYnqO> .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/esp8266/Arduino/issues/2000#issuecomment-275381664, or mute the thread https://github.com/notifications/unsubscribe-auth/ARdZm50kEZuAkBrdYk1XcrTPd8gYiRYJks5rWJeGgaJpZM4IYnqO .
"Windows 10 blocked phyton so yo have to check your fw" isn't overly helpful to newbies and non-techies - can you provide some more details please?
Hepp, it worked for me. But serial monitor doesn't work, but that's seems to be a known issue.
How to open the firewall depends on which firewall you are using. I'm using Windows 7 and ESET and I had to add an rule under advanced setup to allow "c:\Python27\python.exe" to access my internal wifi domain.
http://lmgtfy.com/?q=open+firewall+port+windows+10
Hi
I'am using a ESP-12E, and i don't know the flash size but, I found out that changing flash size from 512K (64 SPIFFS) to 4M (1M SPIFFS)
I can't reproduce this. Closing.