def _setup_network():
global wlan<EOL>global secret<EOL>if sys.platform in PYCOM:<EOL><INDENT>wlan = network.WLAN(network.WLAN.STA)<EOL>secret = (network.WLAN.WPA2, settings.WIFI_PASSWORD)<EOL><DEDENT>else:<EOL><INDENT>wlan = network.WLAN(network.STA_IF)<EOL>secret = settings.WIFI_PASSWORD<EOL><DEDENT>
Setup platform specific network settings