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 theusocketlibrary. This is explained here: https://docs.pycom.io/firmwareapi/micropython/ :)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login