Hello
I hope this is the correct section - I'm not sure what the issue is so unsure where to post.
I've got a relatively simple project to control 2 pairs of fans and monitor the RPMs. However, I'm having an issue with the WiFI communication - everything else works fine.
The project runs fine when there is no client connected to the wifi module and the IP address pings no problem throughout. I can run it for hours without issue, whether my devices are connected or not, so I'm pretty sure the issue isn't with the device setup. When it's all running I have 4 fans, 2 dual relay and 5 digital temperature sensors connected. But like I said, no devices connected and it works just as well with all devices connected.
Until ... I browse to the IP address of the Wifi module. It may work for a few refreshes (auto refresh every 5 seconds), and then will stop responding. I have attached the serial_output_error.PNG file which shows that it appears to be reconnecting the client over and over again. The serial_output_normal.PNG shows the data outputted each second which will run for hours without a client connected. The client page when loaded successfully simply shows JSON data.
I've attached the entire code.
Hopefully someone can point out what I am failing to see.
Any help appreciated and if there's any more information needed please let me know.
By the way the script started life as the Wifi Server example for WifiNINA.


FanController.ino (13.1 KB)