usocket vs socket
-
Hi all,
I am quite new to PyCom and MicroPython. I found in the documentation examples that usocket and socket used interchangeably and it seems they both are the same. The only difference is "import socket" and "import usocket". I don't know if it is correct or I mix things up?
-
Both are eventually the same thing :) Because of compatibility with Python, you can call
import socket
, which will import theusocket
library. This is explained here: https://docs.pycom.io/firmwareapi/micropython/ :)