0

Update conection parameters in setup
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Update conection parameters in setup

by enchinche on Tue Apr 23, 2019 6:01 am

Hi, I have stored my IO_USERNAME and IO_KEY in EEPROM. A function reads it on setup.

but I should define
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
at the begining of the code, before setup

Is there any way to update IO_USERNAME and IO_KEY in Setup function?

enchinche
 
Posts: 1
Joined: Tue Apr 23, 2019 5:40 am

Re: Update conection parameters in setup

by brubell on Thu Apr 25, 2019 9:53 am

If IO_USERNAME and KEY are defined, you'd need to re- #define them in your code to update the values.

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

Please be positive and constructive with your questions and comments.