Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Controlling an RGB LED with a color wheel and subscription
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.

Controlling an RGB LED with a color wheel and subscription

by daemach on Mon Dec 21, 2015 2:19 pm

I'm attempting to control an RGB LED with a subscription but I'm running into problems. I am basing the attempt off of the digital_out example and this code, which I haven't gotten to yet. Anyone have a more elegant solution? http://mark.mckillen.com/2013/03/arduin ... -and-mqtt/

First, it doesn't pick up an initial value when the script first runs. I would assume a subscription would always grab the last item in the feed initially.

Second, it's not picking up changes reliably. It did receive a change once, but I haven't been able to repeat that. I can see it showing up in the stream immediately, but not on the device side.

What's the best way to troubleshoot this?

daemach
 
Posts: 143
Joined: Fri Feb 13, 2009 2:07 pm

Please be positive and constructive with your questions and comments.