Return the number of characters currently in the input buffer.
(self)
| 145 | # - - - - - - - - - - - - - - - - - - - - - - - - |
| 146 | |
| 147 | def inWaiting(self): |
| 148 | """Return the number of characters currently in the input buffer.""" |
| 149 | if not self.sPort: raise portNotOpenError |
| 150 | return self._instream.available() |
| 151 | |
| 152 | def read(self, size=1): |
| 153 | """Read size bytes from the serial port. If a timeout is set it may |