Cannot connect to Wi-Fi (Station Mode)
Cannot connect to Wi-Fi (Station Mode)
If the LED stays blue for roughly 15 seconds and then turns yellow/orange, the ESP32 failed to join the network. Work through these checks:
- Open
ESP32Station.inoand confirm the credentials match your lab network exactly —ssidandpasswordare case-sensitive. - Open the Serial Monitor at 115200 baud and watch the output. The sketch prints the IP address when it connects successfully:
- Some networks restrict new devices. Try disabling WPA2 Enterprise requirements or connect the lab router to a simple WPA2-Personal network for testing.
- The connection attempt retries 30 times with a 500 ms delay between each try — a total timeout of 15 seconds. If your router is slow to respond, you can increase the retry limit in
setup():
Python cannot reach the ESP32
Python cannot reach the ESP32
If the listener prints repeated connection errors, the PC and ESP32 cannot see each other on the network.
- Same network check — In Station mode both the PC and ESP32 must be connected to the same router. In AP mode the PC must be connected to the
HACK_DEMOWi-Fi hotspot, not your regular network. - Firewall — Temporarily disable Windows Firewall and your antivirus for the duration of the test. Both can silently block outbound
requestscalls to local IPs. - Ping test — Confirm reachability before running the Python script:
- IP mismatch — Open the Serial Monitor and confirm the ESP32’s actual IP. If DHCP was used instead of the static assignment, update
ESP32_IPindinleyici_station.pyto match:
WinError 5 / Access Denied
WinError 5 / Access Denied
The listener script executes privileged system commands (
bcdedit, reg delete, del on system paths, taskkill). Windows blocks all of these unless the process has administrator rights.- Right-click PowerShell or Command Prompt and choose “Run as Administrator”.
- Navigate to the script directory and run:
- The script itself checks for admin rights at startup using
ctypes.windll.shell32.IsUserAnAdmin()and exits immediately with a clear message if the check fails — so you will always see a prompt before any damage occurs.
The same requirement applies to the compiled
.exe. Double-clicking the file from an unprivileged session will either silently fail or show the [HATA] message. Right-click the .exe and choose “Run as administrator” instead.LED not lighting up
LED not lighting up
If the ESP32 boots but the LED shows no color at all, work through these steps:
- Confirm the pin definition at the top of the sketch is
8: - Open Arduino IDE → Tools → Manage Libraries and confirm Adafruit NeoPixel is installed. The sketch will not compile without it.
- Upload the minimal test sketch from the LED indicators reference to isolate the issue to hardware versus firmware.
- Confirm your board selection is Tools → Board → ESP32C6 Dev Module. Other ESP32 variants (ESP32, ESP32-S2, ESP32-S3) place the built-in LED on a different pin or have no WS2812B at all — using the wrong board profile will cause
ledRenk()to target the wrong GPIO.
BEKLE never changes to SIL
BEKLE never changes to SIL
If the listener keeps printing
Sinyal bekleniyor: 'BEKLE' indefinitely, the trigger command never reached the ESP32.- Confirm your browser or
curlclient is on the same network as the ESP32. - Navigate to the correct base IP in your browser:
- Station mode:
http://192.168.1.253 - AP mode:
http://192.168.4.1
- Station mode:
- If the control panel loads but the button does nothing, visit the trigger endpoint directly:
- Open the Serial Monitor and look for the confirmation line that
handleTetikle()prints when it runs:If this line does not appear, the HTTP request never reached the server. If it does appear but the Python listener still showsBEKLE, confirm the listener is polling the same IP and port (80).
PyInstaller exe doesn't run
PyInstaller exe doesn't run
The compiled executable has the same administrator requirement as the source script and the same antivirus exposure as any unsigned binary.
- Right-click the
.exein thedist/folder and choose “Run as administrator”. - Build the executable with:
The
-wflag suppresses the console window. Remove it during development so you can see error output. - If your antivirus quarantines or blocks the file, add a folder exception for the
dist/directory in your antivirus settings for the duration of the test. Unsigned single-file PyInstaller executables frequently trigger heuristic detections.