MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / inWaiting

Method inWaiting

src/ext/makerbot_pyserial/serialjava.py:147–150  ·  view source on GitHub ↗

Return the number of characters currently in the input buffer.

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

serialjava.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected