changeset 2:51669cd1a2f1

sta mode
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Sun, 11 Oct 2015 13:02:18 +0200
parents 5536c5501402
children f4b7f09e51df
files connect.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/connect.py	Sun Oct 11 12:55:20 2015 +0200
+++ b/connect.py	Sun Oct 11 13:02:18 2015 +0200
@@ -1,4 +1,6 @@
+import esp
 import network
 
+esp.wifi_mode(esp.STA_MODE)
 wlan = network.WLAN()
 wlan.connect('your-ssid', 'your-password')