code: def toggle_scan(self, enable, filter_duplicates=False):
          
          command = struct.pack(">BB", enable, filter_duplicates)
          self.bluez.hci_send_cmd(self.socket, OGF_LE_CTL, OCF_LE_SET_SCAN_ENABLE, command)
docs: Enables or disables BLE scanning
  
          Args:
              enable: boolean value to enable (True) or disable (False) scanner
              filter_duplicates: boolean value to enable/disable filter, that
                  omits duplicated packets