Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

SSID and Password not known until setup() is run
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.

SSID and Password not known until setup() is run

by JackTheSE on Thu May 20, 2021 8:25 am

Seems like all the Example Programs from the IO library assume that the SSID and password are known before setup() is run. I have a sketch where that is not true, and my work-around is to create my AdafruitIO_WiFi object twice with the same name: once before setup() is called with blank SSID and password, and once again within setup() after the SSID and password are known. While this seems to work OK, it's like I'm defining the same object twice. Is there another way I should be handling this?

JackTheSE
 
Posts: 37
Joined: Wed Jan 02, 2019 8:34 pm

Re: SSID and Password not known until setup() is run

by brubell on Mon May 24, 2021 9:34 am

. I have a sketch where that is not true


Could you please post your code? Is this relying on an external library for provisioning the WiFi AP?

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

Please be positive and constructive with your questions and comments.