Skip to content

Commit

Permalink
Added mDNS for easy webUI access to http://zapesp.local
Browse files Browse the repository at this point in the history
  • Loading branch information
MintyTrebor committed Jan 8, 2025
1 parent 5bd0856 commit 8f799d6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Short Video
8. Compile and upload the project your esp32.

## Web Setup
WebUI: Open your browser and enter the IP address of your ESP32 (see serial console of the IDE or your router to get IP address - to access serial console click the magnifying glass in the top right corner of the IDE, and set baud to 115200 - connect or reset the esp32 to see info and IP address).
WebUI: Open your browser and enter [http://zapesp.local](http://zapesp.local) or the IP address of your ESP32 (see serial console of the IDE or your router to get IP address - to access serial console click the magnifying glass in the top right corner of the IDE, and set baud to 115200 - connect or reset the esp32 to see info and IP address).
1. Zaparoo Settings: Enter IP Address of MiSTer &/or Steamdeck - can also choose to return to MiSTer menu on card removal.
2. ESP32 Settings: Toggle LED's/Audio/Rumble motor and set GPIO Pins. Also toggle SD Card module
3. Audio Settings: Set Audio Gain (Volume : 0.1 - 4), and files names of audio files for Detect, Launch, & Remove Tag.
Expand Down
8 changes: 8 additions & 0 deletions ZaparooEsp32/ZaparooEsp32.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <LittleFS.h>
#include <ESPWebFileManager.h>
#include <NfcAdapter.h>
#include <ESPmDNS.h>
#include <ZaparooLaunchApi.h>
#include <ZaparooRestResult.h>
#include "index.h"
Expand Down Expand Up @@ -412,6 +413,13 @@ bool connectWifi() {
if (WiFi.status() != WL_CONNECTED) {
return false;
}
// Initialize mDNS
retries = 10;
while (!MDNS.begin("zapesp") && retries--) {
Serial.println("Error setting up MDNS responder!");
delay(1000);
}
Serial.println("mDNS started - access the web UI @ http://zapesp.local");
Serial.print("WiFi connected - Zap ESP IP = ");
Serial.println(WiFi.localIP());
WiFi.setSleep(false);
Expand Down

0 comments on commit 8f799d6

Please sign in to comment.