Hello,
I’m developing a project with an arduino mega (with esp module) and a local server running in a raspeberry. the idea is to control the temperatura in my home controlling the boiler (with temperature sensor, hourly program and relay to command the boiler).
I have some doubts about some aspects of this system…
1-I use the function generated by a variation of the value insert in the numeric input setting widget (V16) to doing this:
BLYNK_WRITE(V16){ setpoint=param.asInt()}
The global variable “setpoint” mantain the value also if the smartphone where is installed the widget is offline? So if the code has a control placed in a function called each second like this:
if(setpoint<sensor_value)turn_on_boiler();
arduino does this action also if the smartphone is offline? If the local server is offline? I don’ understand how much the code in the arduino is indipendent to the server and the smartphone…
2-I have the same doubt about the function generated by the timer setting widget (V17):
BLYNK_WRITE(V17){ if (param.asInt()==HIGH) turn_off_boiler()}
For example I set in the widget the start time 10.00 and the stop time 20.00.
If from the 9.59 the arduino or the local server are down what happen? when it’s 10.00 the code calls the function “turn_off_boiler”
Thanks