Description
Sketch uses 314,161 bytes (30%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 39,992 bytes (48%) of dynamic memory, leaving 41,928 bytes for local variables. Maximum is 81,920 bytes.
Uploading...........................................................................................................................................................................................................................
18:50:59 [ERROR]: No Result!
Basic Infos
I have a laptop with Windows 10 in the same IP network segment and connected to the same wifi AP.
I do see the esp under Tools - Port.
Hardware
Hardware: NodeMCU v2
Core Version: 2.3.0
Description
Upload starts but after a couple of seconds it stops.
Then [ERROR]: No Result!
Before, and partially during the upload I can ping the esp, after a few seconds it's no more pingable and it never comes back.
Settings in IDE
Module: NodeMCU 1.0
Flash Size: 4MB
CPU Frequency: 80Mhz
Upload Using: OTA / SERIAL
Reset Method: nodemcu
Sketch
Stripped to the relevant parts, offcourse I connect to wifi and work with sensors and stuff.
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
void setup() {
setupOTA();
}
void loop() {
ArduinoOTA.handle();
}
void setupOTA() {
ArduinoOTA.setHostname("SlimmeMeter");
ArduinoOTA.onStart([]() {
String type;
if (ArduinoOTA.getCommand() == U_FLASH)
type = "sketch";
else // U_SPIFFS
type = "filesystem";
// NOTE: if updating SPIFFS this would be the place to unmount SPIFFS using SPIFFS.end()
Serial.println("Start updating " + type);
});
ArduinoOTA.onEnd([]() {
Serial.println(F("\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(F("OTA Ready"));
}
Debug Messages
Uploading...........................................................................................................................................................................................................................
18:50:59 [ERROR]: No Result!