Adafruit IO library compile error on fresh install

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.
Locked
User avatar
telstar505
 
Posts: 14
Joined: Wed Mar 30, 2016 12:24 pm

Adafruit IO library compile error on fresh install

Post by telstar505 »

HI! I'm trying to compile this example https://github.com/adafruit/Adafruit_IO ... hermometer on a fresh install of:

Arduino IDE (version: 2.0.4) on macOS Monterrey version 12.0.1

Boards manager:
Arduino SAMD Boards (32-bits ARM Cortex-M0+) version 1.8.13
Adafruit SAMD Boards version 1.7.11

Libraries:
Adafruit IO version 4.2.3 (with all dependencies install option)

with Adafruit Feather M0 (SAMD21) as target board

But I get the following compile error:

Code: Select all

In file included from /Users/user/Documents/Arduino/neopixel_and_thermometer/config.h:37,
                 from /Users/user/Documents/Arduino/neopixel_and_thermometer/neopixel_and_thermometer.ino:20:
/Users/user/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO_WiFi.h:56:2: warning: #warning "Must define USE_AIRLIFT or USE_WINC1500 before including this file." [-Wcpp]

[...]

exit status 1

Compilation error: 'AdafruitIO_WiFi' does not name a type
When I try adding

Code: Select all

#define USE_WINC1500
#include "AdafruitIO_WiFi.h"
Then I get another error:

Code: Select all

In file included from /Users/user/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO_Feed.h:21,
                 from /Users/user/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO.h:22,
                 from /Users/user/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_WINC1500.h:21,
                 from /Users/user/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO_WiFi.h:36,
                 from /Users/user/Documents/Arduino/neopixel_and_thermometer/config.h:37,
                 from /Users/user/Documents/Arduino/neopixel_and_thermometer/neopixel_and_thermometer.ino:20:
/Users/user/Documents/Arduino/libraries/Adafruit_MQTT_Library/Adafruit_MQTT.h:28: warning: "strncpy_P" redefined
The code still uploads to the board but I would like to get rid of the error and also not sure if it will work as expected.

Any help welcome!

Edit: I added a comment on a related error in this related Github issue https://github.com/adafruit/Adafruit_IO ... /issues/91

User avatar
alienY
 
Posts: 1
Joined: Thu Mar 09, 2023 1:29 pm

Re: Adafruit IO library compile error on fresh install

Post by alienY »

I am running into the same issues!!!! please reply to this thread asap!!

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”