Sziasztok srácok!
Multiprocessing mudollal csinálok egy másik processt, amiben szeretném használni a soros portot. Viszont, ha ott használom, akkor a következő hibaüzenet fogad:
AttributeError: 'Serial' object has no attribute '_isOpen'
def getData(conn):
USB = conn.recv()
while True:
print USB.readline()
time.sleep(1)
return
...
parent2,child2=Pipe()
currTEMP=Process(target=getTEMP, args=(child2,))
currTEMP.start()
parent2.send(USB)
[ Szerkesztve ]