text: # boot.py
  # wlan access
  ssid_ = <wlan-ssid>
  wp2_pass = <wlan-password>
  
  ## ftp access
  #from ftp import ftpserver
  
  def do_connect():
      import network
      sta_if = network.WLAN(network.STA_IF)
      if not sta_if.isconnected():
          print('connecting to network...')
          sta_if.active(True)
          sta_if.connect(ssid_, wp2_pass)
          while not sta_if.isconnected():
              pass
      print('network config:', sta_if.ifconfig())
  
  do_connect()