Imagine the temperature remains constant for 20 minutes, but at the 21st minute, it changes. The state change is determined by a programmable state change function. How can I create a function to calculate the difference in state change?
if(data.id == "Temperature_1")
{
this.allInOne_Responses[2] = response;
if(this.Temperature_1 > this.prevTemp)
{
egress = true
this.prevTemp = this.Temperature_1;
}
}