-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
class ArduinoOTAClass' has no member named 'getCommand' #2833
Comments
This is because PlatformIO ships with outdated libraries.
Inside this lib_esp8266 dir I have a folder called ArduinoOTA copied from the latest esp8266 Arduino library (https://github.com/esp8266/Arduino/tree/master/libraries/ArduinoOTA) |
This is discussed on the Platform.io Community. Quote:
#3020 is a duplicate of this issue. |
#2445 added getCommand many years ago. |
Team,
I am unable to compile the firmware for the ESP8266 using Platformio. After downloading the ArduinoOTA, I consistently receive the error log below, can someone tell me what I am doing wrong?
Thanks in advance,
-Tiest
----- ERROR LOG -----
tiest@chrx:
/pio/ota$ curl -o src/main.ino https://raw.githubusercontent.com/esp8266/Arduino/master/libraries/ArduinoOTA/examples/BasicOTA/BasicOTA.ino/pio/ota$ pio run --target upload% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1945 100 1945 0 0 3672 0 --:--:-- --:--:-- --:--:-- 3676
tiest@chrx:
[Thu Jan 5 21:29:57 2017] Processing nodemcuv2 (platform: espressif8266, board: nodemcuv2, framework: arduino)
Verbose mode can be enabled via
-v, --verbose
optionConverting main.ino
Collected 23 compatible libraries
Looking for dependencies...
Library Dependency Graph
|-- v1.0
| |-- v1.0
| |--
| | |-- v1.0
|--
| |-- v1.0
|-- v1.0
Compiling .pioenvs/nodemcuv2/src/ArduinoOTA.o
Compiling .pioenvs/nodemcuv2/src/main.ino.o
Archiving .pioenvs/nodemcuv2/libFrameworkArduinoVariant.a
Indexing .pioenvs/nodemcuv2/libFrameworkArduinoVariant.a
Compiling .pioenvs/nodemcuv2/FrameworkArduino/Esp.o
Compiling .pioenvs/nodemcuv2/FrameworkArduino/FS.o
/home/tiest/pio/ota/src/main.ino: In lambda function:
/home/tiest/pio/ota/src/main.ino:35:20: error: 'class ArduinoOTAClass' has no member named 'getCommand'
if (ArduinoOTA.getCommand() == U_FLASH)
^
src/ArduinoOTA.cpp: In constructor 'ArduinoOTAClass::ArduinoOTAClass()':
src/ArduinoOTA.cpp:34:3: error: class 'ArduinoOTAClass' does not have any field named '_rebootOnSuccess'
, _rebootOnSuccess(true)
^
src/ArduinoOTA.cpp: At global scope:
src/ArduinoOTA.cpp:95:60: error: no 'void ArduinoOTAClass::setPasswordHash(const char*)' member function declared in class 'ArduinoOTAClass'
void ArduinoOTAClass::setPasswordHash(const char * password) {
^
src/ArduinoOTA.cpp:101:53: error: no 'void ArduinoOTAClass::setRebootOnSuccess(bool)' member function declared in class 'ArduinoOTAClass'
void ArduinoOTAClass::setRebootOnSuccess(bool reboot){
^
*** [.pioenvs/nodemcuv2/src/main.ino.o] Error 1
src/ArduinoOTA.cpp: In member function 'void ArduinoOTAClass::_runUpdate()':
src/ArduinoOTA.cpp:317:8: error: '_rebootOnSuccess' was not declared in this scope
if(_rebootOnSuccess){
^
src/ArduinoOTA.cpp: At global scope:
src/ArduinoOTA.cpp:345:33: error: no 'int ArduinoOTAClass::getCommand()' member function declared in class 'ArduinoOTAClass'
int ArduinoOTAClass::getCommand() {
^
*** [.pioenvs/nodemcuv2/src/ArduinoOTA.o] Error 1
The text was updated successfully, but these errors were encountered: