Skip to content

Error compiling httpUpdate example with new boardmanager 2.2.0 #1940

Closed
@pieterverhees

Description

@pieterverhees

Basic Infos

Hardware

Hardware: ESP-12F
Core Version: 2.2.0

Description

Problem description
This morning I updated the board manager to esp8266 to 2.2.0.
Compiling the example file httpUpdate for the Generic ESP8266 gives an error it didn't do before.
It compiles fine for the Olimex-Mod-wifi...

Settings in IDE

Module: Generic ESP8266 Module - ESP12
Flash Size: 4MB?
CPU Frequency: 80Mhz
Flash Mode: dio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ck

Sketch

#include <Arduino.h>

void setup() {

}

void loop() {

}

Debug Messages

Arduino: 1.6.8 (Mac OS X), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 4M (3M SPIFFS), ck, Serial, All"

In file included from /Users/pieter/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp:26:0:
/Users/pieter/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp: In member function 'HTTPUpdateResult ESP8266HTTPUpdate::handleUpdate(HTTPClient&, const String&, bool)':
/Users/pieter/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.h:37:67: error: cannot pass objects of non-trivially-copyable type 'const class String' through '...'
 #define DEBUG_HTTP_UPDATE(...) DEBUG_ESP_PORT.printf( __VA_ARGS__ )
                                                                   ^
/Users/pieter/Library/Arduino15/packages/esp8266/hardware/esp8266/2.2.0/libraries/ESP8266httpUpdate/src/ESP8266httpUpdate.cpp:223:9: note: in expansion of macro 'DEBUG_HTTP_UPDATE'
         DEBUG_HTTP_UPDATE("[httpUpdate]  - current version: %s\n", currentVersion);
         ^
exit status 1
Error compiling for board Generic ESP8266 Module.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions