Black Lives Matter - Action and Equality. ... Adafruit is part of the Stop Hate for Profit campaign. Adafruit is open and shipping.
0

IO w/ Relay: Toggle switch resets to 'off' when reloaded
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.

IO w/ Relay: Toggle switch resets to 'off' when reloaded

by Rpvanpatt on Sun Jan 31, 2016 4:57 pm

Hi,

I have set up adafruit IO with a CC3000 and a 4 channel relay. I am able to turn on/off, however if I reload the webpage the toggle buttons reset to 'off'. Is there a way to have IO recognize what state the relay is in when connected?

Also, every time I open the serial monitor, it resets and reconnects to the wifi. This resets my relays to an 'on' state, which I would not like to happen every time.

Any advice would be awesome. Thanks!

Rpvanpatt
 
Posts: 20
Joined: Mon Dec 14, 2015 10:48 am

Please be positive and constructive with your questions and comments.