[python-win32] Python - connexion to serial port

Schoeni, Yann Yann.Schoeni at moutier.ch
Thu Jan 11 10:12:33 EST 2018


Hey there !

I've a web application which needs to send data to a serial port. The webserver uses ajax to send data to a python script.

The Python script uses the serial module to open, send data, and close the serial port.

Is there a way to keep the serial port open ?

Because for now, I open/close it between each transaction and I need to be 100% sure the data package will be send .. which is not the case with my actual python script.

Thank you in advance for your answer.

Best wishes

Yann Schoeni
Municipalité de Moutier
Apprenti informaticien
Tél. +41 (0)32 494 11 69
Mob. +41 (0)79 827 30 86
E-mail yann.schoeni at moutier.ch<mailto:yann.schoeni at moutier.ch>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20180111/9e35a083/attachment.html>


More information about the python-win32 mailing list