uiflow: usocket module does not work if upload a sketch through the "download"
torabora last edited by torabora
I have a problem: the usocket module does not work if upload a sketch through the "download" item in the uiflow IDE.
Here's an example of sketch:
from m5stack import lcd
import usocket as socket
addr = socket.getaddrinfo('micropython.org', 80)[-1]
s = socket.socket()
s.send(b'GET / HTTP/1.1\r\nHost: micropython.org\r\n\r\n')
data = s.recv(1000)
lcd.print("Data len: " + str(len(data)))
If you upload by button with the triangle icon (looks like play) - it works, data received. If uploaded on the M5 through download - always fails.
ajb2k3 last edited by
@torabora what do you mean by doesn't work.
if you restart the m5stack, can you run the app from the app menu?
torabora last edited by
@ajb2k3 The app starts after reboot M5 Fire, but the code is triggered in the exception block and displays message "Got Error!".