text: #! /usr/bin/env python
  
  ###############################################################################
  # esp8266_MicroPy_boot_boilerplate.py
  #
  # base boot.py boilerplate code for MicroPython running on the esp8266
  # Copy relevant parts and/or file with desired settings into boot.py on the esp8266 
  #
  # The boot.py will be run once at every startup or reset. Configuration, etc 
  # should happen in this file.
  #
  #
  # Created: 06/04/16
  #   - Joshua Vaughan
  #   - joshua.vaughan@louisiana.edu
  #   - http://www.ucs.louisiana.edu/~jev9637
  #
  # Modified:
  #   *
  #
  ###############################################################################
  
  import webrepl
  import time
  from machine import Pin
  
  # Create a pin object for the esp8266 onboard LED
  pin = Pin(2, Pin.OUT)
  pin.value(1) # Turn the LED off to start
  
  WIFI_SSID = "WIFISSID"
  WIFI_PASSWORD = "WIFIPASS"
  
  # Set to true to connect to the WIFI network identified by the parameters above
  # We'll leave the access point open too, for easy debugging/programming
  CONNECT_AS_STATION = True
  
  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(WIFI_SSID, WIFI_PASSWORD)
          while not sta_if.isconnected():
              print('.')
              time.sleep_ms(250)
              pin.value(not pin.value()) # Toggle the LED while trying to connect
              
      print('Network Configuration:', sta_if.ifconfig())
      pin.value(1) # Turn off the LED connected
  
  
  # Start the webREPL
  # Connect via http://micropython.org/webrepl/
  # or using the .html file from https://github.com/micropython/webrepl
  webrepl.start()
  
  if CONNECT_AS_STATION:
      do_connect()
  
  