Closed sujitrp closed 4 years ago
Hi! I am currently in the process of reworking the wifi connection logic. The new code will continuously try to connect and not stop trying after half a minute like the current version. So that will fix this problem :)
Awsome Aircoookie
@Aircoookie Have you considered using Arduino_ConnectionHandler? It does all the heavy lifting, like, loading appropriate drivers per board, connecting, notifying of successful connection via calling function, notifying (also via function call) that there has been a disconnect and even reconnects when available....in the connect/disconnect functions you can stop polling OTA and MQQT while not connected and resume them again once connected. This works on all Arduino SamD boards as well as ESP8266 and ESP32. I believe I had to install Arduino debug library as well but if it fits with your memory requirements it might be better than rewriting it yourself or at least look into their code and methodology of handling connections. I am using this on several boards that are connected to Arduino's beta cloud program (mostly MKR1000s, MKR1010s, MKR1400s & 1 ESP8266) but do have the ConnectionHandler running on numerous esp boards and this allows code to be more portable across architectures. Just a thought especially if you start storing/running HTML & config from SPIFFS your code would work on any of the Arduino platforms as well ESPs with a few #ifndef statements.
Again, awesome project, can't wait for seg support to be fully implemented, so this is a completely selfish recommendation as I would rather you work on it than WiFi :) Have a good one!
Hello Aircoookie, I would be very pleased about the function that the software permantent tries to log on to WiFi. When will it be available? WLED "lights up" our living room for some time now and we are absolutely happy!
@Physikus74 have you already updated to 0.8.6 or were you experiencing issues with it? 0.8.6 has the new connection logic, so it will permanently attempt to reconnect!
no, I still have 0.8.5. Thanks for the hint, I will update and report in the next time. ;o)
With 0.8.6 update this issue is resolved
Please guide me to add delay in wifi connection. My router takes 5-6 min for boot and start normal. Router is provided by the provider so no option to change the same. In case off Power, outage scenario WLED fails to connect Router and secure IP .
Is any way can delay the WLED wifi connect function?