parameters: (self)
docstring: Stop the reader thread
docstring_summary: Stop the reader thread
docstring_tokens: Stop the reader thread
function: def stop(self):
          """Stop the reader thread"""
          self.alive = False
          if hasattr(self.serial, 'cancel_read'):
              self.serial.cancel_read()
          self.join(2)
function_tokens: def stop ( self ) : self . alive = False if hasattr ( self . serial , 'cancel_read' ) : self . serial . cancel_read ( ) self . join ( 2 )