However from a week ago the code stopped working, it was completely ok before.
So, have you made any change to the code to cause that? Nope, I've used the same code.Have you tried a reset to see if it would work OK again? A reset button of arduino?If so, what does failedCounter say?Is that code complete? Yes, it just include uartWIFI, in which I modified the baudrate to 115200What is the objective? It is just a test, when it works well I am going to insert this in another sketch to measure particulate matter.Thanks in advance, Nick.
A reset button of arduino?
Yes, a reset button on an Arduino.
You still haven't said if it works again after a reset. If it does, how long does it take to fail? Is the time taken to fail more or less the same time every time? If so, you may be clogging up the memeory with String class stuff.