(self)
| 76 | them. This is used to use MakerBot's pyserial to detect machines. """ |
| 77 | |
| 78 | def __init__(self): |
| 79 | self._log = logging.getLogger(self.__class__.__name__) |
| 80 | self.machines_recently_seen = {} |
| 81 | # ^ Bots seen since the inception of this object |
| 82 | self.machines_just_seen = {} |
| 83 | # ^ Bots seen in the last scan, |
| 84 | self.list_ports_by_vid_pid = list_ports_generator |
| 85 | # ^ Save func as a variable for testing purposes. hacky |
| 86 | |
| 87 | def get_machine_name_from_vid_pid(self, vid, pid): |
| 88 | machine_name = None |
nothing calls this directly
no outgoing calls
no test coverage detected