Answer the question
In order to leave comments, you need to log in
Is it possible to organize a non-blocking connection wait in Socket + Python?
Micropython (python3)
At the socket.accept() stage, the program freezes at this point and this is not acceptable for me.
There is a loop inside with the main logic while True: which cannot be interrupted.
So here's the question. Is it possible inside the while True: loop to track the connection and pass it to the handler function so that it responds to the client, but the loop is not interrupted while waiting for the connection?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question