Skip to content

Commit 91c5c1a

Browse files
authored
Update main.py
1 parent 1836511 commit 91c5c1a

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

example/http-get-post/main.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
from machine import UART, Pin
2-
import time
32
from esp8266 import ESP8266
3+
import time, sys
4+
5+
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
6+
print("RPi-Pico MicroPython Ver:", sys.version)
7+
print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
48

5-
esp01 = ESP8266()
6-
esp8266_at_ver = None
79

10+
## Create On-board Led object
811
led=Pin(25,Pin.OUT)
912

13+
## Create an ESP8266 Object
14+
esp01 = ESP8266()
15+
esp8266_at_ver = None
16+
1017
print("StartUP",esp01.startUP())
1118
#print("ReStart",esp01.reStart())
1219
print("StartUP",esp01.startUP())
@@ -16,9 +23,9 @@
1623
'''
1724
Print ESP8266 AT comand version and SDK details
1825
'''
19-
esp8266_at_var = esp01.getVersion()
20-
if(esp8266_at_var != None):
21-
print(esp8266_at_var)
26+
esp8266_at_ver = esp01.getVersion()
27+
if(esp8266_at_ver != None):
28+
print(esp8266_at_ver)
2229

2330
'''
2431
set the current WiFi in SoftAP+STA

0 commit comments

Comments
 (0)