🇺🇸Adafruit will not be shipping orders on Independence Day Monday 7/4/2022. Please allow extra time for your order to ship and plan accordingly.🇺🇸
0

error: 'class WiFiClass' has no member named 'setPins'
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.

error: 'class WiFiClass' has no member named 'setPins'

by Giv on Tue May 24, 2022 11:43 am

Is there a fix for the above issue between Adafruit Airlift Breakout and the board 'adafruit metro grand central m4' ? I am trying to update the FIRMWARE VERSION on the two Adafruit Airlift Breakout. Is there a new Arduino compatible Adafruit WIFININA lib. ?

Thank you.

Giv
 
Posts: 26
Joined: Sat Aug 06, 2016 1:52 pm

Re: error: 'class WiFiClass' has no member named 'setPins'

by dastels on Tue May 24, 2022 11:56 am

You're using the Adafruit version of WifiNINA? As per https://learn.adafruit.com/adafruit-airlift-breakout/arduino.

You can check in Arduino's library manager for any updates to the library.

Dave

dastels
 
Posts: 10158
Joined: Tue Oct 20, 2015 3:22 pm

Re: error: 'class WiFiClass' has no member named 'setPins'

by Giv on Wed May 25, 2022 1:34 pm

Hi Dave,
No, It seems there are multiple WiFi.h and had to pick the correct one. I know I have the latest Arduino WiFiNINA "1`.8.13". But I found two other helpful posts on this issue:
https://forums.adafruit.com/viewtopic.php?f=53&t=158596&p=782046&hilit=Grand+Central+M4#p782046

and

https://forums.adafruit.com/viewtopic.php?f=56&t=164725#p811069. You can close this issue.

Thank you.

Giv
 
Posts: 26
Joined: Sat Aug 06, 2016 1:52 pm

Re: error: 'class WiFiClass' has no member named 'setPins'

by brubell on Fri May 27, 2022 10:51 am

The Adafruit "fork"/version of WIFININA includes the setPins() function. The Arduino version does not.

Here's how to fix it,

1) Please uninstall the version of the WiFiNINA library you have installed in Arduino.

2) Then, follow the steps on this page to install the Adafruit version of WiFiNINA: https://learn.adafruit.com/adafruit-air ... -3024912-5

brubell
 
Posts: 1678
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.