The library does not work #119
Unanswered
franciscogimeno2000
asked this question in
Q&A
Replies: 1 comment
-
Ok leave it, I have solved it in another way. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am trying to use the library to update a generic ESP32 by downloading the binary to an external server. Using a w5500 ethernet module
This is the software:
Ide arduino portable type clean installation. version: 1.8.13
Esp32 library version: 2.0.1
Version of your ArduinoOTA library: 1.0.7
As indicated in its manual, the ArduinoOTA folder has been removed from the ESP32 library folder.
Loaded example:
OTASKETCHDOWNLOAD
Errors thrown after compiling:
E: \ ARDUINOPORTABLE \ arduino-1.8.13_ESP \ portable \ sketchbook \ libraries \ ArduinoOTA \ src / ArduinoOTA.h: 123: 22: error: 'WiFiServer' was not declared in this scope
ArduinoOTAMdnsClass <WiFiServer, WiFiClient, WiFiUDP> ArduinoOTA;
^ ~~~~~~~~~
E: \ ARDUINOPORTABLE \ arduino-1.8.13_ESP \ portable \ sketchbook \ libraries \ ArduinoOTA \ src / ArduinoOTA.h: 123: 22: note: suggested alternative: 'Server'
ArduinoOTAMdnsClass <WiFiServer, WiFiClient, WiFiUDP> ArduinoOTA;
^ ~~~~~~~~~
Server
E: \ ARDUINOPORTABLE \ arduino-1.8.13_ESP \ portable \ sketchbook \ libraries \ ArduinoOTA \ src / ArduinoOTA.h: 123: 34: error: 'WiFiClient' was not declared in this scope
ArduinoOTAMdnsClass <WiFiServer, WiFiClient, WiFiUDP> ArduinoOTA;
^ ~~~~~~~~~
E: \ ARDUINOPORTABLE \ arduino-1.8.13_ESP \ portable \ sketchbook \ libraries \ ArduinoOTA \ src / ArduinoOTA.h: 123: 34: note: suggested alternative: 'DNSClient'
ArduinoOTAMdnsClass <WiFiServer, WiFiClient, WiFiUDP> ArduinoOTA;
^ ~~~~~~~~~
DNSClient
E: \ ARDUINOPORTABLE \ arduino-1.8.13_ESP \ portable \ sketchbook \ libraries \ ArduinoOTA \ src / ArduinoOTA.h: 123: 53: error: template argument 1 is invalid
ArduinoOTAMdnsClass <WiFiServer, WiFiClient, WiFiUDP> ArduinoOTA;
^
E: \ ARDUINOPORTABLE \ arduino-1.8.13_ESP \ portable \ sketchbook \ libraries \ ArduinoOTA \ src / ArduinoOTA.h: 123: 53: error: template argument 2 is invalid
Multiple libraries found for "WiFiUdp.h"
Used: E: \ ARDUINOPORTABLE \ arduino-1.8.13_ESP \ portable \ packages \ esp32 \ hardware \ esp32 \ 2.0.1 \ libraries \ WiFi
exit status 1
Compiling error for ESP32 Dev Module card
If we compile and the esp32 ArduinoOTA directory is not deleted gives these errors:
E:\ARDUINOPORTABLE\arduino-1.8.13_ESP\portable\sketchbook\libraries\ArduinoOTA\examples\Advanced\OTASketchDownload\OTASketchDownload.ino: In function 'void handleSketchDownload()':
OTASketchDownload:76:8: error: 'InternalStorage' was not declared in this scope
if (!InternalStorage.open(length)) {
^~~~~~~~~~~~~~~
OTASketchDownload:85:5: error: 'InternalStorage' was not declared in this scope
InternalStorage.write(b);
^~~~~~~~~~~~~~~
OTASketchDownload:88:3: error: 'InternalStorage' was not declared in this scope
InternalStorage.close();
^~~~~~~~~~~~~~~
Se encontraron varias bibliotecas para "ArduinoOTA.h" Usado: E:\ARDUINOPORTABLE\arduino-1.8.13_ESP\portable\packages\esp32\hardware\esp32\2.0.1\libraries\ArduinoOTA
Se encontraron varias bibliotecas para "WiFi.h" Usado: E:\ARDUINOPORTABLE\arduino-1.8.13_ESP\portable\packages\esp32\hardware\esp32\2.0.1\libraries\WiFi
exit status 1
'InternalStorage' was not declared in this scope
Thanks for your time and help.
Fran
Beta Was this translation helpful? Give feedback.
All reactions