|
You are here |
o5wald.github.io | ||
| | | | |
3.70.187.24
|
|
| | | | | ||
| | | | |
yasoob.me
|
|
| | | | | Hi there fellows. In this post I am going to take you on an adventure with python sockets. They are the real backbones behind web browsing. In simpler terms there is a server and a client. We will deal with the client first. So lets first begin by importing the socket library and making a simple socket. import socket s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) Here we made a socket instance and passed it two parameters. | |
| | | | |
nagekar.com
|
|
| | | | | ||
| | | | |
tinkering.xyz
|
|
| | | After learning about async/await in Python I wondered how I could apply it to software in my lab. Much of that involves talking to equipment via serial ports. Libraries for talking to serial ports exist, but I found the documentation for doing so via async/await sparse. Here's an example of how to use PySerial asynchronously. | ||