def block_device_monitor()

in usb_monitor_pkg/usb_monitor_pkg/usb_monitor_node.py [0:0]


    def block_device_monitor(self, device):
        """Function callback passed to pyudev.MonitorObserver to monitor USB connection.

        Args:
            device (pyudev.Device): USB Device with attached attributes and properties.
        """
        # Only care about new insertions.
        if device.action == "add":
            self.queue.put(device)