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