       def start_discovery do
         Bluex.DBusDiscovery.start_discovery(__MODULE__)
       end
+
+      def stop_discovery do
+        Bluex.DBusDiscovery.stop_discovery(__MODULE__)
+      end
     end
   end
 end

    |> Enum.into(%{})

    state = Map.put(state, :adapters, adapters)
    {:noreply, state}
  end


  def start_discovery(pid) do
    GenServer.cast(pid, :start_discovery)
  end

  @doc """
  Starts Bluetooth discovery
  """
  def stop_discovery(pid) do
    GenServer.cast(pid, :stop_discovery)
  end


  @doc false
  def init([module, _opts]) do
