Hi:
It seems the bug reported at https://sourceforge.net/p/pyserial/bugs/135/ has not been resolved.
pablo@pablo-530U3C-530U4C-532U3C:~$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import serial
ser = serial.serial_for_url("socket://10.61.175.200:5000/logging=debug",timeout=None)
DEBUG:pySerial.socket:enabled logging
INFO:pySerial.socket:ignored port configuration change
INFO:pySerial.socket:ignored setRTS(True)
INFO:pySerial.socket:ignored setDTR(True)
INFO:pySerial.socket:ignored flushInput
INFO:pySerial.socket:ignored flushOutput
print(ser.name)
socket://10.61.175.200:5000/logging=debug
ser.read(12)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/serial/urlhandler/protocol_socket.py", line 138, in read
timeout = time.time() + self._timeout
TypeError: unsupported operand type(s) for +: 'float' and 'NoneType'
Do you have any comments?
Thanks.
Best Regards,
PoliFe2+
BTW, it works fine under Windows, but not in Ubuntu