I try to keep it as short as possible,
I'm running several different devices built with NodeMCU Boards (ESP8266) in my house like a wifi speaker, doorbell, doorlock, door camera, lighting controls, wireless sockets, and so on.
Over the years I've faced problems with random reboots and losing connection.
I've logged everything, I've changed my router, I've changed to fixed IP, I've tried several power supplies, I've tried original and chinese board types, I have tried PLENTY of different wifi codes but the problem always stays the same. i've googled my butt off to find a solution but nothing ever helped and I'm getting tired thinking about buying an expensive arduino with ethernet shield. I don't wanna steal ur precious time to show you the thousands lines of codes or logs that I got. So i'm kindly asking for an example script of a system from one of you that's been working for a long period of time now without any problems. Also what power supply are you using, any hardware modifications (caps, diodes) etc.
I need an example script which I can be sure that's working 100% cz anything else won't help me.
Thank you in advance!