i am new to Blynk and i measuring temperature and showing it with a history graph.
if there is some error on the Sensor the line graph goes to 85 or -127, because the sensor is giving this “error”-values.
i am trying to filter this and showing a gap in the line instead of messing up the graph every time the sensor gives wrong values…
@sturze I’m not a big fan of != especialy with an &&. Plus you would normally need to be informed that the sensor has failed in some way. So I would have:
if(pooltemp == 85.0 || pooltemp == -127.0)
{
// warn of error with Serial.println(), email / notify / Terminal / Display widgets etc
}
else{
// do the virtualWrite() of sensor data from graphing purposes
}
yup, this definitely fixed the line dropping to zero. The thing is now, if i just dont write the value does not changes this means i cant see that its not measuring. is there no value for “nothing”? or how can i manage to display that?!
I see… ok, if you last sent a value, then stop sending any data… then yes, I guess it will keep displaying that last value.
I suppose you could build in some logic that says send a " " the first time the NULL data happens and then nothing from then on… should blank out the Display Widget and show acordingly on the History graph.