setProperty order

G’day
Have a strange (well to me anyway) situation where the order of Blynk.setproperty dictates which one is executed.
With the following code, V7 color works but not the V7 label.

      Blynk.setProperty(V7, "color" ,  BLYNK_GREEN); Blynk.run();
      Blynk.setProperty(V7, "label" , "OFF: Hi Temp relay");Blynk.run();
   
      Blynk.setProperty(V3, "color" ,  BLYNK_GREEN); Blynk.run();
      Blynk.setProperty(V3, "label" , "OFF: Lo Temp relay"); Blynk.run(); 

and with this code V7 label works but color is not changed
Blynk.setProperty(V7, “label” , “OFF: Hi Temp relay”);Blynk.run();
Blynk.setProperty(V7, “color” , BLYNK_GREEN); Blynk.run();

      Blynk.setProperty(V3, "color" ,  BLYNK_GREEN); Blynk.run();
      Blynk.setProperty(V3, "label" , "OFF: Lo Temp relay"); Blynk.run();

But when only two code lines are used both properties changed
Blynk.setProperty(V7, “color” , BLYNK_GREEN); Blynk.run();
Blynk.setProperty(V7, “label” , “OFF: Hi Temp relay”);Blynk.run();

So what basic thing am I missing…

Without seeing all of your code, it is just a guess as to what you are doing… but you do NOT need every command followed by a Blynk.run(); In fact, that might actually be throwing off timing enough to cause your skipped command issue.

Leave a single Blynk.run() in the void loop() and structure the rest of your code with timers as needed.

1 Like

@Gunner, got ride of the Blynk.run;s and made no difference.,
Is there any way of finding what code command causes the “your ESP8266 was disconnected
By commenting out the Blynk.setProperty label command I never get a disconnect msg.
I think this is the root problem, as somehow I’m flooding the Blynk site, but do not know what I’m sending to cause that problem.

We would need to see your whole code, just guessing otherwise.

G’day,
I found out that the disconnects are not due to flooding but my code(at times) is not sending heart beats to Blynk.
So could say the problem is solved as far as any problems with Blynk system.
Have solved my predicament by doing a sync every minute and that clears up any data errors that sometimes occur during a timeout.
Tks for your help once again @Gunner