Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

update to Adafruit IO library 3.7.0 causes conflict
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

update to Adafruit IO library 3.7.0 causes conflict

by BitGrundy on Sat Jul 11, 2020 9:51 pm

I updated Adafruit IO library to 3.7.0 (from 3.2.2) because of the expired certificate and now my projects won't compile on PlatformIO. It's trying to link in SleepyDog, which apparently isn't compatible with the ESP8266 platform. I'm including the build log and my platformio.ini file.

Code: Select all | TOGGLE FULL SIZE
Processing esp12e (platform: espressif8266; board: esp12e; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/esp12e.html
PLATFORM: Espressif 8266 2.3.1 > Espressif ESP8266 ESP-12E
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
 - framework-arduinoespressif8266 2.20602.191128 (2.6.2)
 - tool-esptool 1.413.0 (4.13)
 - tool-esptoolpy 1.20800.0 (2.8.0)
 - toolchain-xtensa 2.40802.191122 (4.8.2)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 60 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <ArduinoJson> 5.13.4
|-- <ArduinoHttpClient> 0.4.0
|-- <Adafruit IO Arduino> 3.7.0
|   |-- <Adafruit MQTT Library> 1.3.0
|   |   |-- <Adafruit SleepyDog Library> 1.3.2
|   |   |-- <Adafruit FONA Library> 1.3.8
|   |   |-- <WiFi101> 0.16.0
|   |   |   |-- <SPI> 1.0
|   |-- <ArduinoHttpClient> 0.4.0
|   |-- <Adafruit Unified Sensor> 1.1.4
|   |-- <Adafruit NeoPixel> 1.5.0
|   |-- <DHT sensor library> 1.3.10
|   |   |-- <Adafruit Unified Sensor> 1.1.4
|   |-- <Ethernet> 0.0.0-alpha+sha.9f41e8231b
|   |   |-- <SPI> 1.0
|   |-- <Adafruit Si7021 Library> 1.3.0
|   |   |-- <Wire> 1.0
|   |-- <Adafruit SGP30 Sensor> 1.2.1
|   |   |-- <Wire> 1.0
|   |-- <Adafruit BME280 Library> 2.0.2
|   |   |-- <Adafruit Unified Sensor> 1.1.4
|   |   |-- <Wire> 1.0
|   |   |-- <SPI> 1.0
|   |-- <Adafruit LIS3DH> 1.2.0
|   |   |-- <Adafruit Unified Sensor> 1.1.4
|   |   |-- <Adafruit BusIO> 1.3.3
|   |   |   |-- <Wire> 1.0
|   |   |   |-- <SPI> 1.0
|   |   |-- <Wire> 1.0
|   |   |-- <SPI> 1.0
|   |-- <Adafruit VEML6070 Library> 1.0.4
|   |   |-- <Adafruit ILI9341> 1.5.6
|   |   |   |-- <Adafruit GFX Library> 1.9.0
|   |   |   |   |-- <Adafruit BusIO> 1.3.3
|   |   |   |   |   |-- <Wire> 1.0
|   |   |   |   |   |-- <SPI> 1.0
|   |   |   |   |-- <Wire> 1.0
|   |   |   |   |-- <SPI> 1.0
|   |   |   |-- <Adafruit STMPE610> 1.1.2
|   |   |   |   |-- <Wire> 1.0
|   |   |   |   |-- <SPI> 1.0
|   |   |   |-- <Adafruit TouchScreen> 1.1.0
|   |   |   |-- <SPI> 1.0
|   |   |-- <AUnit> 1.3.2
|   |   |-- <Wire> 1.0
|   |-- <ESP32Servo> 0.8.0
|   |-- <WiFi101> 0.16.0
|   |   |-- <SPI> 1.0
|   |-- <ESP8266WiFi> 1.0
|   |-- <SPI> 1.0
|   |-- <Adafruit FONA Library> 1.3.8
|-- <Adafruit MQTT Library> 1.0.3
|   |-- <Adafruit FONA Library> 1.3.8
|-- <Adafruit Unified Sensor> 1.0.3
|-- <Adafruit BME680 Library> 1.0.7
|   |-- <Wire> 1.0
|   |-- <Adafruit Unified Sensor> 1.1.4
|   |-- <SPI> 1.0
|-- <DallasTemperature> 3.8.0
|   |-- <OneWire> 2.3.5
|-- <EEPROM> 1.0
|-- <ArduinoOTA> 1.0
|   |-- <WiFi101> 0.16.0
|   |   |-- <SPI> 1.0
|   |-- <ESP8266WiFi> 1.0
|   |-- <ESP8266mDNS> 1.2
|   |   |-- <WiFi101> 0.16.0
|   |   |   |-- <SPI> 1.0
|   |   |-- <ESP8266WiFi> 1.0
|-- <Adafruit Unified Sensor> 1.1.4
|-- <Wire> 1.0
|-- <ESP8266WiFi> 1.0
|-- <WiFi101> 0.16.0
|   |-- <SPI> 1.0
|-- <SPI> 1.0
Building in release mode
Compiling .pio\build\esp12e\src\bme680.cpp.o
Compiling .pio\build\esp12e\src\config.cpp.o
Compiling .pio\build\esp12e\src\main.cpp.o
Generating LD script .pio\build\esp12e\ld\local.eagle.app.v6.common.ld
Archiving .pio\build\esp12e\libf6d\libArduinoJson.a
Compiling .pio\build\esp12e\libff6\ArduinoHttpClient\HttpClient.cpp.o
Compiling .pio\build\esp12e\libff6\ArduinoHttpClient\URLEncoder.cpp.o
Compiling .pio\build\esp12e\libff6\ArduinoHttpClient\WebSocketClient.cpp.o
Compiling .pio\build\esp12e\libff6\ArduinoHttpClient\b64.cpp.o
Compiling .pio\build\esp12e\lib5b0\Adafruit SleepyDog Library\Adafruit_SleepyDog.cpp.o
In file included from .pio\libdeps\esp12e\Adafruit SleepyDog Library\Adafruit_SleepyDog.cpp:27:0:
.pio\libdeps\esp12e\Adafruit SleepyDog Library\Adafruit_SleepyDog.h:32:2: error: #error Unsupported platform for the Adafruit Watchdog library!
 #error Unsupported platform for the Adafruit Watchdog library!
  ^
.pio\libdeps\esp12e\Adafruit SleepyDog Library\Adafruit_SleepyDog.h:35:8: error: 'WatchdogType' does not name a type
 extern WatchdogType Watchdog;
        ^
.pio\libdeps\esp12e\Adafruit SleepyDog Library\Adafruit_SleepyDog.cpp:32:1: error: 'WatchdogType' does not name a type
 WatchdogType Watchdog;
 ^
*** [.pio\build\esp12e\lib5b0\Adafruit SleepyDog Library\Adafruit_SleepyDog.cpp.o] Error 1
================================================================================== [FAILED] Took 5.80 seconds ==================================================================================
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.
Attachments
platformio.ini
(919 Bytes) Downloaded 5 times

BitGrundy
 
Posts: 1
Joined: Fri Jan 05, 2018 10:28 pm

Re: update to Adafruit IO library 3.7.0 causes conflict

by electricphred on Mon Jul 13, 2020 7:58 am

Bit:

I've had huge problems trying to get going with AdafruitIO under PlatformIO. Have had to manually delete some libraries under VSCODE .pio libs. Solved an identical Sleepy Dog Problem with this addition to my platform.ini

lib_ignore = Adafruit SleepyDog Library

Now i'm down to 12 identical errors from (perhaps the wrong) WiFi library:
.pio/libdeps/esp32thing/WiFi/src/WiFiClient.cpp:233:21: error: 'close' was not declared in this scope
close(sockfd);
I say "perhaps the wrong" since i find that many of the wrong libraries are being selected even tho' the correct ones are on my machine. I'm too new to PlatformIO and AdafruitIO to sort this out in a very scientific way.

electricphred
 
Posts: 15
Joined: Wed Jul 01, 2020 10:40 am

Re: update to Adafruit IO library 3.7.0 causes conflict

by electricphred on Mon Jul 13, 2020 8:02 am

Bit:

I noticed in your compile log that the compiler is bringing in WiFi101. Suffered this mightily and I don't believe that library is compatible with your 8266 or my ESP32. Ended up deleting that library.

electricphred
 
Posts: 15
Joined: Wed Jul 01, 2020 10:40 am

Please be positive and constructive with your questions and comments.