This micropython 1.11 document (https://docs.micropython.org/en/latest/ ... twork.html) uses the following import
Code: Select all
# now use usocket as usual
import usocket as socket
Code: Select all
# now use usocket as usual
import usocket as socket
Code: Select all
MicroPython v1.11-8-g48dcbbe60 on 2019-05-29; ESP module with ESP8266
Type "help()" for more information.
>>> import usocket
>>> import socket
>>> socket
<module 'lwip'>
>>> usocket
<module 'lwip'>
>>> socket is usocket
True