     wpa_pid = wait_for_wpa()
     Nerves.WpaSupplicant.request(wpa_pid, {:AP_SCAN, 2})
     Farmbot.Leds.blue(:slow_blink)
+    init_mdns(@mdns_domain)
+    update_mdns(@address)
     {:ok, %{dhcp_server: dhcp_server, dnsmasq: dnsmasq}}
   end
 

    :error
  end

end


  @interface Application.get_env(:farmbot, :captive_portal_interface, "wlan0")
  @address Application.get_env(:farmbot, :captive_portal_address, "192.168.25.1")
  @mdns_domain "farmbot-setup.local"

  @dnsmasq_conf_file "dnsmasq.conf"
  @dnsmasq_pid_file "dnsmasq.pid"
