(self)
| 529 | return msg |
| 530 | |
| 531 | def disconnect(self): |
| 532 | if self.handle: |
| 533 | self._close_port(self.handle) |
| 534 | for com_port_handle in self.communication_port_list: |
| 535 | self._close_port(com_port_handle) |
| 536 | |
| 537 | # TODO: add an API to close a communication port ? |
| 538 |