def connectionLost(self, reason=connectionDone):
"""
Overridden function that is called when the connected port is disconnected. Simply sets the
self.is_port_attached flag to False so that we know we have been disconnected from the target embedded
board.
:param reason: Reason for disconnection. Of Twisted failure type.
:return:
"""
self.is_port_attached = False
LineReceiver.connectionLost(self, reason)
评论列表
文章目录