Maybe I’m just implementing incorrectly. So I’m doing something along the lines of (every 2 seconds):
void changeColors() {
if (aThingIsRunning == TRUE)
{
Blynk.setProperty(V0, "color", "#D3435C"); // Color red
}
else if (aThingIsRunning == FALSE)
{
Blynk.setProperty(V0, "color", "#5F7CD8"); // Color dark blue
}
}
No problems. However, if I add one more vPin, like:
void changeColors() {
if (aThingIsRunning == TRUE)
{
Blynk.setProperty(V0, "color", "#D3435C");
Blynk.setProperty(V1, "color", "#D3435C");
}
else if (aThingIsRunning == FALSE)
{
Blynk.setProperty(V0, "color", "#808080");
Blynk.setProperty(V1, "color", "#808080");
}
}
…I’m constantly losing connection. This is a WeMos D1 mini. I’ve played around with a delay(50)
between setProperty
, or placing in a different place in my sketch, and using flags to make sure Blynk.setProperty
happens just once, but whatever I do, if I have more than one Blynk.setProperty
in a sketch I get the Blynk app disconnect notice.
Any ideas? I’m doing something different than what’s shown in the example sketches… maybe doing it wrong! Thanks.