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.
Locked
User avatar
JackTheSE
 
Posts: 54
Joined: Wed Jan 02, 2019 8:34 pm

SSID and Password not known until setup() is run

Post by JackTheSE »

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?

User avatar
brubell
Learn User Page
 
Posts: 2017
Joined: Fri Jul 17, 2015 10:33 pm

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

Post by brubell »

. 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?

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”