Hello you,
below is the code for esp07
The script is to display the temperature, turn on the diode and refresh after some time.
The whole thing generally works, the problem is that after some refresh I get in the browser "connection has been reset, no connection etc" generally I have to issue node.restart() from the lualoder console to make the program revive. In summary the section falls down
eSP itself is fine, because in the timer
shows me the network data all the time, even though the server section above has died.
i solved the problem using this workaround
When the server section is suspended, the timeralarm variable will always have the same value, so if after receiving the variable value twice both values are the same it restarts the module.
Now to you a question if it is possible to do it nicer?
Why do these suspensions happen?
I would be very grateful for your help
The whole code below.
below is the code for esp07
The script is to display the temperature, turn on the diode and refresh after some time.
The whole thing generally works, the problem is that after some refresh I get in the browser "connection has been reset, no connection etc" generally I have to issue node.restart() from the lualoder console to make the program revive. In summary the section falls down
Code: Lua
eSP itself is fine, because in the timer
Code: Lua
shows me the network data all the time, even though the server section above has died.
i solved the problem using this workaround
Code: Lua
When the server section is suspended, the timeralarm variable will always have the same value, so if after receiving the variable value twice both values are the same it restarts the module.
Now to you a question if it is possible to do it nicer?
Why do these suspensions happen?
I would be very grateful for your help
The whole code below.
Code: Lua
Company Account: