ESPHap: Using HTTPClient in sketch gives error
Hi
Im trying to add a url POST action to my sketch. But when adding this line this line to my code: HTTPClient http;
I get this error:
/Users/jonasborneland/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-4-b40a506/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld: /Users/jonasborneland/Library/Arduino15/packages/esp8266/hardware/esp8266/2.6.3/tools/sdk/lib/libaxtls.a(crypto_misc.o): in function
base64_decode’:
xtensa-lx106-elfhome/earle/src/axtls-8266/crypto/crypto_misc.c:327: multiple definition of base64_decode'; libraries/ESPHap-master/base64.c.o:/Users/jonasborneland/Documents/Arduino/libraries/ESPHap-master/base64.c:64: first defined here collect2: error: ld returned 1 exit status exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module).
I have included ESP8266HTTPClient.h: #include <ESP8266HTTPClient.h>
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 25 (11 by maintainers)
Commits related to this issue
- #14 — committed to Yurik72/ESPHap by Yurik72 4 years ago
Hi, I confirm that is library conflicts between EspHap and ESP8266HTTPClient.h At this moment my suggestion is use another HTTP client I have checked my own simplified implementation and you can see it from example https://github.com/Yurik72/ESPHap/tree/master/examples/EspHap_Thermostat
HTTPSimpleClient.h HTTPSimpleClient.cpp
I have used this client as well for ESP32, due to other conflicts
if success i will close an issue