I use the following function to get the name of the connected wifi connection. The function is called repeatedly every 4 seconds to monitor connection changes. But after a w