def _wifi_connect():
if not wlan.isconnected():<EOL><INDENT>wlan.active(True)<EOL>print("<STR_LIT>" % settings.WIFI_SSID)<EOL>wlan.connect(settings.WIFI_SSID, secret)<EOL>while not wlan.isconnected():<EOL><INDENT>print("<STR_LIT>")<EOL>utime.sleep(<NUM_LIT:1>)<EOL><DEDENT>print("<STR_LIT>" % repr(wlan.ifconfig()))<EOL><DEDENT>
Connects to WIFI