-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 OTAWebUpdater using softAP doesn't work #3076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Did you remark out the wait for connection part? |
Yes, as soon as I noticed that it didn't work I tried without removing it and it still didn't work. |
The example works for me. Please turn on verbose logging under the tools menu, flash the program again, and post the log from serial monitor. Check that you can ping the device at 192.168.4.1 from your PC after you connect to the SoftAP. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
I am having the same problem. Can you help me pls? |
I think its related to the inclusion of a external code |
I managed to fix the issue thanks to a old post from "Machiel" (link: https://esp32.com/viewtopic.php?t=11744) in which he converted the jquery script and embedded it into the firmware (not using spiffs). Here is the full, working code. (edit: embedded code was messed up, so i'm uploading it). |
Thank you very much, the code works fine. |
nice one, really love it. Was struggling with the "serverindex cannot be found" for quite some time ... this even helped me with my SoftAP-approach. the only update required was the "PROGMEM", "script src=", "void onJavaScript" and the "server.on("/jquery.min.js", [...]);" works perfectly without an external Wifi-Router :-)
|
Board: ESP-WROOM32
Core Installation/update date: Latest
IDE: Arduino IDE
Flash Frequency: 80Mhz/40Mhz
Upload Speed: 115200
Computer OS: Windows 10
So, I'm creating a OTA update server using the OTAWebUpdater example. When I connect it to my WiFi router, it works perfectly. The problem is, if I create a softAP instead of connecting it to my WiFi, it doesn't work anymore. The browser window returns the following:
"Not found: /serverIndex".
In the code, the only changes I made were WiFi.softAP(ssid, pass) instead of WiFi.begin(ssid, pass), and I removed the "wait for connection" loop.
What should I do?
The text was updated successfully, but these errors were encountered: