From 8540f8f3cf52a75b727d42171da4872bd333cd5c Mon Sep 17 00:00:00 2001 From: Apoorva Singh Date: Sun, 6 Oct 2019 11:42:08 +0530 Subject: [PATCH] Removed a redundant example --- 02_Connecting to Wifi/readme.md | 8 -------- 02_Connecting to Wifi/wifi_connect.py | 9 --------- 2 files changed, 17 deletions(-) delete mode 100644 02_Connecting to Wifi/readme.md delete mode 100644 02_Connecting to Wifi/wifi_connect.py diff --git a/02_Connecting to Wifi/readme.md b/02_Connecting to Wifi/readme.md deleted file mode 100644 index f0e20ac..0000000 --- a/02_Connecting to Wifi/readme.md +++ /dev/null @@ -1,8 +0,0 @@ -# 02_Connecting_to_Wifi -This program is to connect to WiFi using NodeMCU -To run the program use the following ampy command - - -```bash - ampy --port /dev/tty.SLAB_USBtoUART run wifi_connect.py -``` diff --git a/02_Connecting to Wifi/wifi_connect.py b/02_Connecting to Wifi/wifi_connect.py deleted file mode 100644 index b977084..0000000 --- a/02_Connecting to Wifi/wifi_connect.py +++ /dev/null @@ -1,9 +0,0 @@ -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('', '') - while not sta_if.isconnected(): - pass - print('Network config:', sta_if.ifconfig()) \ No newline at end of file