mathworks / thingspeak-arduino

ThingSpeak Communication Library for Arduino, ESP8266 and ESP32
https://thingspeak.com
438 stars 231 forks source link

error duplicate define ERR_TIMEOUT when compile on esp board #53

Closed kaebmoo closed 3 years ago

kaebmoo commented 5 years ago

error when compile on esp board.

in ThingSpeak.h

define ERR_TIMEOUT -304 // Timeout waiting for server to respond

and in err.h (Arduino/hardware/espressif/esp32/tools/sdk/include/lwip/lwip)

define ERR_TIMEOUT -3 / Timeout. /

when change ERR_TIMEOUT in ThingSpeak.h to other (eg. ERR_TIMEOUT_1) can be compiled.

jasontwinters commented 5 years ago

Thanks for pointing that out. I'll change that in the next update.

VictorTagayun commented 4 years ago

any other way to solve this issue? ERR_TIMEOUT to ERR_TIMEOUT_OTHER ??

MNeiraN commented 4 years ago

Thanks for sharing this. It saved my life ! I had the same error compiling for arduino. In my case I'm using also the library that uses the same definition ERR_TIMEOUT. Not absolutely sure if this is the problem.

afan31 commented 3 years ago

This issue is addressed in v 2.0.0 of the library.