Hello, I have a page on my ESP-01 with a button, with which I turn on / off the diode (ultimately it is to be an app for android - actually it already is) However, I would like to add a button, so that when it is turned on, the diode turns on and off depending on the temperature from the thermometer. Till now I had it done in style :
But after turning off the page in the browser, it stopped refreshing it- which is quite logical (and then what I want becomes meaningless because the temperature is not updated) I don't know if what I want is possible, surely it is, but somehow I have no idea :/
code that controls the diode manually:
My idea was to make a module to control an electric heater, with the possibility of switching it on remotely via wifi and with the option of automatic switching on / off the heater at specific temperatures, as the heater "replaces" my diode and it is just an idea, that is why I wrote above about the diode
if (client.readString.indexOf("/autom") !=-1 && temp1 <25 )
włącz diodę But after turning off the page in the browser, it stopped refreshing it- which is quite logical (and then what I want becomes meaningless because the temperature is not updated) I don't know if what I want is possible, surely it is, but somehow I have no idea :/
code that controls the diode manually:
Code: C / C++
My idea was to make a module to control an electric heater, with the possibility of switching it on remotely via wifi and with the option of automatic switching on / off the heater at specific temperatures, as the heater "replaces" my diode and it is just an idea, that is why I wrote above about the diode