From 84d50f88f6e32e598df5b02753b6f49bd3e737ee Mon Sep 17 00:00:00 2001 From: cliechti Date: Mon, 10 Aug 2009 22:19:41 +0000 Subject: - add timeout option for RFC 2217 client - update docs git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@333 f19166aa-fa4f-0410-85c2-fa1106f25c8a --- documentation/pyserial_api.rst | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'documentation') diff --git a/documentation/pyserial_api.rst b/documentation/pyserial_api.rst index c26ea3f..e634de3 100644 --- a/documentation/pyserial_api.rst +++ b/documentation/pyserial_api.rst @@ -746,6 +746,11 @@ accept the following types URL: most servers do). Enable this option when :meth:`getCTS` does not work as expected, i.e. for servers that do not send notifications. + - ``timeout=``: Change network timeout (default 3 seconds). This is + useful when the server takes a little more time to send its answers. The + timeout applies to the initial Telnet / :rfc:`2271` negotiation as well + as changing port settings or control line change commands. + - ``debug``: Prints diagnostic messages (not useful for end users). ``socket://`` @@ -768,8 +773,10 @@ accept the following types URL: - ``debug``: Prints diagnostic messages (not useful for end users). -Examples:: +Examples: - rfc2217://localhost:7000 - rfc2217://localhost:7000/poll_modem - rfc2217://localhost:7000/ign_set_control/debug +- ``rfc2217://localhost:7000`` +- ``rfc2217://localhost:7000/poll_modem`` +- ``rfc2217://localhost:7000/ign_set_control/timeout=5.5`` +- ``socket://localhost:7777`` +- ``loop://`` -- cgit v1.2.1