Value Display Widget gives wrong value (SOLVED multi-MCU using same AUTH)

Weird thing, the value display widget gives the wrong value:


void updateBlynk(){
  if (blynkUpdate){
    Serial.print("Blynk update, current / target T: ");
    Serial.print(" / ");
    Blynk.virtualWrite(V3, targetT);
    Blynk.virtualWrite(V4, currentT);
    Blynk.virtualWrite(V5, heatOn*200);
    Blynk.virtualWrite(V6, valveMaintenanceCycle*200);
    Blynk.virtualWrite(V7, errorFlag*200);
    blynkUpdate = false;

Serial output:

Blynk update, current / target T: 21.18 / 12.00

while the values on the Blynk display are:
currentT: 0.97 (shifting constantly to nearby values and more often then I actually call the Blynk update routine)
targetT: 401 (constantly increasing one step at a time)
Only when the data is pushed (so when I see a serial update I notice that the ‘value display’ very briefly gives the right value and changes back again.


  • the above routine are the ONLY Blynk.virtualWrite() nowhere else in the code is that function called.
    Also V3 and V4 are NOWHERE else used in the code.
  • updateBlynk is on a timer, called every second or when the targetT is changed (either by the app itself or by external physical buttons).

full code:

ok, sometimes taking some distance from a project helps quite a bit in finding solutions. While playing a board game I suddenly realised that I flashed two other esp’s with the same code as well and thus with the same authentication string…hence they were all updating the same value but only one was connected with a sensor, the other two were apparently not pulled to the ground which explains the increase of the target temp each second…I was about to delete the original post but I guess this can happen to another as well.

We keep learning.