问题描述
你好
我用pyserial解决了配置问题,但我有另外一个问题。
串口每次我读取并重新打开时关闭
i新写。
在我的脚本中没有写关闭,为什么关闭?
Thaks Luca
Hello
I have solve the problem of configuration with pyserial but i have
another question.
The serial port close every time i make the read and re-open when i do
i new write.
In my script there is not write close , why it close ?
Thaks Luca
推荐答案
我们怎么知道什么是错的,除非你发布一个小的
示例程序来展示问题?
如果你想要一个WAG,这里是一个:串口对象转到
超出范围并收集垃圾。
请阅读:
-
Grant Edwards grante哇!嗯,哦!我忘了
来提交给COMPULSORY
visi.com URINALYSIS!
How on earth would we know what''s wrong unless you post a small
example program that exhibits the problem?
If you want a WAG, here''s one: the serial port object going
out-of-scope and getting garbage collected.
Please read this:
http://www.catb.org/~esr/faqs/smart-questions.html
--
Grant Edwards grante Yow! Uh-oh!! I forgot
at to submit to COMPULSORY
visi.com URINALYSIS!
我们再猜一次吗?
-Peter
Shall we guess again?
-Peter
这篇关于Pyserial再次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!