(self, str_send, timeout, *stuff)
| 262 | |
| 263 | # send mode-specific command with modified timeout |
| 264 | def timeoutcmd(self, str_send, timeout, *stuff): |
| 265 | timeout_old = self.timeout |
| 266 | self.do_timeout(timeout, True) |
| 267 | str_recv = self.cmd(str_send, *stuff) |
| 268 | self.do_timeout(timeout_old, True) |
| 269 | return str_recv |
| 270 | |
| 271 | # ------------------------[ reconnect ]------------------------------- |
| 272 | def do_reconnect(self, *arg): |