Created
May 30, 2018 23:51
-
-
Save truckershitch/72cb7de8e53542114afe2b3dec38b698 to your computer and use it in GitHub Desktop.
Script in microPython for NodeMCU ESP8266 board - blinks in response to binary code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', 'password') | |
while not sta_if.isconnected(): | |
pass | |
print('network config:', sta_if.ifconfig()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment