Calling WiFi.setCredentials blocks user code for a little over 1600ms.
This would normally not be a problem but our product has a STM6321RWY6F watchdog. We chose this particular one as it has one of the longest timeouts available of 1.6 seconds. At a minimum we pet it every 500ms
We can disable the watchdog when setting the WiFi Credentials but that sort of defeats the purpose. Granted this is a short period of time and setting credentials is a rare occurrence in the products lifetime but setting credentials shouldn’t take that long. I’m also thinking that if it takes 1.6 seconds, how much is it doing and what are the chances it hangs in this process?
I’m using a P1, Firmware 1.4.4. I am running SYSTEM_THREAD(ENABLED).
Not a show stopper, just looking for some education or a way to shorten this time
Thanks in advance,