Hey Hey
.
I have a problem when using the server on ESP, over time (once every few days) esp crashes and for example the main loop executes in 5-8 seconds (default ~244ms). Already in not the first project. Below posted I tried to optimise for memory used, on the advice of user Khoam, I still have a bit left. However, I don't know if it's me neglecting something or if the library itself might be causing the problem. I've made a precaution in the main loop, however I would like to know why this is happening.
Link .
The code has grown a bit and I would write it differently now, but I will try to describe the actions.
ESP starts by checking if it has WiFi data stored otherwise it starts WiFiRegister and resets.
Depending on the mode-STA/AP is combined (WiFiController), then the server is started (WebServerController) and esp waits for information from the web or RF receiver.
The project itself consists of analogue volume knob control of the radio system over the whole plot + RF devices.
Control via web + RF receiver + RF transmitter + pin on mosfet to disconnect servo (in case of esp reset and PWM misreading)
Thanks in advance for your help and suggestions and I am open to any reasoned criticism of the code
.
Regards.

I have a problem when using the server on ESP, over time (once every few days) esp crashes and for example the main loop executes in 5-8 seconds (default ~244ms). Already in not the first project. Below posted I tried to optimise for memory used, on the advice of user Khoam, I still have a bit left. However, I don't know if it's me neglecting something or if the library itself might be causing the problem. I've made a precaution in the main loop, however I would like to know why this is happening.
Link .
The code has grown a bit and I would write it differently now, but I will try to describe the actions.
ESP starts by checking if it has WiFi data stored otherwise it starts WiFiRegister and resets.
Depending on the mode-STA/AP is combined (WiFiController), then the server is started (WebServerController) and esp waits for information from the web or RF receiver.
The project itself consists of analogue volume knob control of the radio system over the whole plot + RF devices.
Control via web + RF receiver + RF transmitter + pin on mosfet to disconnect servo (in case of esp reset and PWM misreading)
Thanks in advance for your help and suggestions and I am open to any reasoned criticism of the code

Regards.