I tried to send and receive at the same time using Thread, and only the thread is working, the rest of the code does not excuse.
My code:
def send():
    while True:
        time.sleep(0.5)
        print("Send Method")
thread = threading.Thread(send())
thread.start()
while True:
    try:
        time.sleep(1)
        print("Loop")
    except Exception as e:
        pass
only "Send Method" is printed
How can I make them both work?
 
     
    